------------------------------------------------------------------------------- - PMBROWSE - ------------------------------------------------------------------------------- - by Alec Smecher (AGE_Smecher@bc.sympatico.ca) - ------------------------------------------------------------------------------- This program is free. Do whatever you want with it, as long as it is unmodified and distributed with this unmodified document. Basically, I needed it, so I wrote it. I'm sure somebody else has already written it, but I was too lazy to look for it. (Ironic, isn't it?) PMBROWSE allows you to view the output of an OS/2 command-line program within a PM window. The advantage over MORE is the ability to scroll back up. The code is quick and dirty, but it works. Unfortunately, it is currently to 2048 lines * 80 characters, and some of the scrolling code goes wonky when resizing the window if the scrollbars aren't in the upper-left configuration. Also, the code stores the piped info in memory as an array of an array of characters, which acts funny as the number of lines increases. I will address these problems if I get enough of a response; I don't want to spend too much time on something nobody has any interest in. If you find yourself running into these problems and would like me to spend some time on them, or have other suggestions or problems, please E-mail me. Another brief note... Before I take credit for all the coding, I would like to say that the program was written with information almost entirely gleaned from EDM/2, mostly within Larry Salomon's "Introduction to PM Programming" articles. It was compiled with EMX 0.9c, a free compiler. Thanks to the two sources, IBM, and Sidekick Online, I have a complete programming environment at no cost to myself. Please visit the web sites of some of the aforementioned: EDM/2 at http://www.edm2.com Sidekick Online at http://www.teleport.com/~qhorse/sol/solindex.htm EMX runtime and information are available at Hobbes, Leo, etc. *-*-*-*-*-*-*-*-*-*-*-*-*DISCLAIMER-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* *I take no responsibility whatsoever for any damage this program may cause. * *By running the program, the user accepts all responsibility. * *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* ------------------------------------------------------------------------------- - INSTALLATION / USAGE - ------------------------------------------------------------------------------- In order to run PMBROWSE, you must have installed the EMX 0.9c runtime. This is downloadable from Hobbes (ftp to hobbes.nmsu.edu), Leo (ftp.leo.org), and many other OS/2 sites. To install, simply place PMBROWSE.EXE in a directory that is listed in the PATH statement in your CONFIG.SYS file. Use PMBROWSE as you use MORE, for example: dir | pmbrowse would list the contents of the directory listing in the PMBROWSE window dir /b | sort | pmbrowse would list the sorted contents of the directory listing in the PMBROWSE window When using multiple pipes (eg dir | sort | pmbrowse), PMBROWSE must be the last entry because its output is to a PM window, not a command-line interface.