home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / pmbrowse.zip / pmbrowse.txt < prev   
Text File  |  1997-04-28  |  3KB  |  60 lines

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