home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / SHOWANSI.DOC < prev    next >
Text File  |  1997-07-05  |  2KB  |  47 lines

  1. +++Date last modified: 05-Jul-1997
  2.  
  3. About a year or so ago I published an ANSI viewer here called "showansi", the
  4. purpose of which was to view ANSI files compatible with the DOS ANSI.SYS.
  5. These files are used not only for artwork of various types, but are used for
  6. displaying screens with various BBS packages.
  7.  
  8. What follows is a reworked version of that viewer, again in a class 
  9. implementation and adds the following features:
  10.  
  11.     o   Bugs in the ANSI interpreter have been fixed; namely, an
  12.         '8' is no longer misinterpreted as a backspace (whoops!)
  13.         and the ansi sequence parser has been fixed and simplified.
  14.         A minor bug in the video class was also corrected and the
  15.         scroll() member was enhanced to allow scrolling downwards.
  16.  
  17.     o   Wildcard expansion has been added, thanks to the DIRPORT
  18.         package in Bob Stout's SNIPPETS. Since these were modified
  19.         for 32-bit OS/2 support, I have included them here also.
  20.         You can now say: "showansi *.ans", for example.
  21.  
  22.     o   The "ansisys" class was broken up into two classes for
  23.         allowing the system to be extended to other types of
  24.         screen interpreters. A base class "scrinterp" was defined
  25.         with all the basic 'get' and standard put functions
  26.         implemented, leaving interpretation of special characters
  27.         to derived classes.
  28.  
  29.     o   In view of the previous item, an AVATAR level 0+ (well,
  30.         almost :-)) was added, allowing avatar/mecca/oansi files
  31.         to be viewed as well. A special switch was added (-a) to
  32.         allow the input file type to be toggled.
  33.  
  34. This was tested and ported for Watcom C++ under OS/2 and MSDOS in both 16 and
  35. 32 bit modes (although a DOS4G executable is probably going a wee bit far
  36. :-)), and OS/2 emx 32-bit. The resulting emx executable will not run under
  37. DOS since the video calls the OS/2 API directly - this could probably be
  38. changed by changing those calls to emx's 'portable' video interface; perhaps
  39. someone interested will port it and send diffs or whatever. For Watcom,
  40. compile in large model for the 16-bit executable under OS/2, and you will
  41. need a copy of the 16-bit OS/2 toolkit (OS/2 toolkit 1.3).
  42.  
  43. Enjoy!
  44.  
  45.  
  46.                                                          David Nugent
  47.