home *** CD-ROM | disk | FTP | other *** search
- PSCREEN - Utility for saving and displaying packed screens
- ----------------------------------------------------------
- Brian Foley
- TurboPower Software
- 8/88
- Version 5.00
- Released to the public domain
-
- Overview
- ------------------------------------------------------------------------------
- PSCREEN is a utility program designed to be used in conjunction with the TPCRT
- unit in Turbo Professional 5.0. It operates in either of two modes. In
- resident mode, PSCREEN allows you to capture text screens, video attributes
- and all, in a packed format and save them to disk. In non-resident mode,
- PSCREEN allows you to display a packed window that has previously been saved
- to a file. This facility can be used to create colorful batch files, for
- example.
-
- Using PSCREEN
- ------------------------------------------------------------------------------
- To run PSCREEN in resident mode, simply enter
-
- PSCREEN
-
- at the DOS prompt, with no parameters. When you want to save the current
- contents of the screen to disk, press the PSCREEN hotkey, Ctrl-LeftShift-P,
- and enter the name of the file to save it in. You can unload PSCREEN by
- pressing <AltU> when prompted for a filename.
-
- To display a packed screen using PSCREEN, enter
-
- PSCREEN filename.ext
-
- at the DOS prompt. PSCREEN will simply display the contents of the file and
- terminate. It will not attempt to go resident.
-
- Possible Enhancements
- ------------------------------------------------------------------------------
- PSCREEN in its current form has much room for improvement. The following
- describes some missing capabilities that you might want to implement yourself:
-
- (1) PSCREEN cannot display packed windows stored in LBR files, nor can it save
- screens to an LBR file. Adding this capability would be relatively easy,
- however, since TPCRT contains all the primitive routines that are needed:
- OpenLibrary, ReadWindowFromLibrary, CreateLibrary, AddWindowToLibrary, and
- CloseLibrary.
-
- (2) PSCREEN does not perform color mapping when it displays a packed window
- from a file. You might want to add a command line option like '/M' to request
- that colors be mapped if necessary, using MapPackedWindowColors, before the
- screen is displayed.
-
- (3) When saving screens in resident mode, PSCREEN assumes that the entire
- screen should be saved. You might want to add a facility for marking a smaller
- section of the screen as the window to be saved.