home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / drawing / hdisp14.zip / HACKDISP.DOC < prev    next >
Text File  |  1993-08-22  |  21KB  |  462 lines

  1.       ┌─────────────────────────────────────────────────────────────────┐
  2.       │                                                                 │
  3.       │   ███ ███ ▄█████▄ ██████ ███ ███ █████▄ ▀███▀ ▄█████▄ ██████    │
  4.       │   ███ ███ ███ ███ ████ ▀ ███ ██▀ ████ █  ███  ▀██▄▄ ▀ ████ █    │
  5.       │   ███████ ███████ ████ ▄ █████   ████ █  ███  ▄ ▀▀██▄ ████ █    │
  6.       │   ███ ███ ███ ███ ██████ ███ ██▄ ██████ ▄███▄ ▀█████▀ ████▀▀    │
  7.       │   version 1.4           copyright 1992, 1993 James L. Powers    │
  8.       └─────────────────────────────────────────────────────────────────┘
  9.  
  10.          The screen conversion utility of choice for
  11.  
  12.                 LAUGHING DOG
  13.                 Wildcat! 3.x
  14.                    PCBoard
  15.                     ANSI
  16.                    display files!
  17.  
  18.                  brought to you by:
  19.          The Dead LEEEEEEECH! Society BBS & Mortuary
  20.                    (614) 899-7839
  21.                  2400-14400 baud 8N1
  22.  
  23.  
  24.  
  25. ================================================================================
  26.  
  27.  
  28.  
  29.  
  30.         This program was written after laboriously hand-converting
  31.      an ANSI file that should have been a piece of cake for a well
  32.      known  free  utility  widely  available  for WC!  3.x sysops.
  33.      From it's humble beginnings as  a  down  and  dirty  50  line
  34.      utility,  HACKDISP  has ballooned to some 1500+ lines of code
  35.      and boasts an extensive command line set.
  36.  
  37.          HACKDISP is lazy.  It works by  letting  DOS  handle  the
  38.      ANSI  conversion.   Your file is output to your color display
  39.      and  HACKDISP  lifts  the  characters  and  color  attributes
  40.      directly  out  of  screen  memory.  ANSI.SYS or an equivalent
  41.      ANSI driver must be loaded.  There is *NO* support  for  ANSI
  42.      animation  (other  than that which your ANSI driver supports)
  43.      or WC! v2.x or PCBoard system codes.
  44.  
  45.          HACKDISP  will  also  convert  from  or  to  Laughing Dog
  46.      v1.0-v1.14 (copyright 1992, Jeff Sloan) format  if  the  file
  47.      extension .DOG is found in the command line.  HACKDISP is THE
  48.      ONLY   alternative  to  LDOGRAB.EXE,  a  terminate  and  stay
  49.      resident screen capture program  bundled  with  Laughing  Dog
  50.      Screen  Maker.   No  other Laughing Dog conversion utility is
  51.      known to exist.  Converting  your  present  ANSI  or  @-coded
  52.      screens to DOG format is quick and easy with HACKDISP!
  53.  
  54.         HACKDISP  creates  compressed Laughing Dog screens in some
  55.      cases tighter than Laughing Dog itself and  can  also  create
  56.      them in the uncompressed form.
  57.  
  58.          HACKDISP  will  also  convert  and  view PCBoard @X-coded
  59.      files.
  60.  
  61.          Finally, HACKDISP will take  your  Wildcat,  PCBoard,  or
  62.      Laughing  Dog file and hack it back to ANSI.  This is a "last
  63.      ditch" feature and HACKDISP does  NOT  produce  the  tightest
  64.      possible  ANSI  files.   But if you lost your ANSI originals,
  65.      HACKDISP  can  and  will  get  them back for you.  Use a file
  66.      extension of .ANS or the /A switch on  the  command  line  to
  67.      force ANSI output.
  68.  
  69.          In addition to converting files, HACKDISP will also allow
  70.      you  to  view  the  converted files or your ANSI originals in
  71.      color or black and white.
  72.  
  73.          A  great deal of effort has been put into making HACKDISP
  74.      produce the smallest possible WC!  v3.x or PCBoard equivalent
  75.      of your ANSI or  Laughing  Dog  files.   Although  this  will
  76.      probably  not help you save hard drive space in the long run,
  77.      it will help enhance Wildcat's or PCBoard's performance  when
  78.      displaying  @-coded  screens,  since HACKDISP's mission is to
  79.      create a display  file  with  as  few  attribute  changes  as
  80.      possible.
  81.  
  82.          It is assumed WC!  3.x sysops will know where and when to
  83.      system codes necessary to pause or clear the display and will
  84.      edit  the  output of HACKDISP as required.  However, with the
  85.      additional support for file prefixes and suffixes in HACKDISP
  86.      v1.3, many modifications can now be made "on the fly".
  87.  
  88.          HACKDISP will only handle  one  screen  (25,  43,  or  50
  89.      lines)  at a time.  You can specify the number of lines (1-50
  90.      depending on the  current  video  mode)  to  convert  on  the
  91.      command  line or convert the entire screen.  Please note that
  92.      not all ANSI drivers can support 43 and 50 line mode!  If you
  93.      convert a screen while in 43 or 50 line mode but view  it  in
  94.      25 line mode, HACKDISP will scroll the display.
  95.  
  96.          HACKDISP will refuse to run on monitors with less than 80
  97.      columns or versions of DOS less than 3.0!
  98.  
  99.          HACKDISP  will  neither  convert nor display files larger
  100.      than 65,535 bytes.  That's the breaks.  Got one?  I'd like to
  101.      see it!
  102.  
  103.          HACKDISP   writes   directly   to  screen  memory  during
  104.      conversion and display and  may  cause  "snow"  on  some  CGA
  105.      systems.
  106.  
  107.          HACKDISP has been tested under DESQview and LANtastic and
  108.      works  well  under  either  environment.   HACKDISP  supports
  109.      SHARE.EXE  but  opens  and  closes most files so quickly that
  110.      it's hardly worth the bother.
  111.  
  112.          HACKDISP is free for personal and non-business use.
  113.  
  114.  
  115.  
  116. ================================================================================
  117. ================================================================================
  118.  
  119.  
  120.  
  121.  
  122.      Usage:
  123.  
  124.      To convert ANSI files to WC! 3.x @COLOR@ codes:
  125.  
  126.      HACKDISP [d:\path\] INPUT_FILE.EXT [d:\path\] OUTPUT_FILE.EXT
  127.  
  128.      To convert Laughing Dog v1.0 files to WC! 3.x @COLOR@ codes:
  129.  
  130.      HACKDISP [d:\path\] INPUT_FILE.DOG [d:\path\] OUTPUT_FILE.EXT
  131.                     ^^^
  132.      To convert ANSI or WC! 3.x files to Laughing Dog v1.0 format:
  133.  
  134.      HACKDISP [d:\path\] INPUT_FILE.EXT [d:\path\] OUTPUT_FILE.DOG
  135.                                    ^^^
  136.      To convert nn lines of the present screen to WC! 3.x @COLOR@ codes:
  137.  
  138.      HACKDISP SCREEN [d:\path\] OUTPUTFILE.EXT /L=nn
  139.  
  140.      The value of nn is in the range 1-50 and will default to  the
  141.      maximum number of screen lines if omitted.  nn is disregarded
  142.      if you are converting to Laughing Dog format.
  143.  
  144.      To view converted files in COLOR:
  145.  
  146.      HACKDISP [d:\path\] FILENAME.EXT
  147.  
  148.      To view converted files in B&W:
  149.  
  150.      HACKDISP [d:\path\] FILENAME.EXT /B
  151.  
  152.      Please note HACKDISP does NOT recognize wildcards in filenames!
  153.  
  154.  
  155. ================================================================================                                                                          =======================================================================
  156.  
  157.  
  158.             -=≡COMMAND LINE SWITCHES IN DEPTH≡=-
  159.  
  160.  
  161.     /N       Ignore all spaces from bottom of screen to last character
  162.          of last non-blank line.
  163.  
  164.     /F       Fast conversion.  No default  2  second  delay.   Ignored
  165.          when  files  are  displayed.  When converting to Laughing
  166.          Dog format, forces UNCOMPRESSED format.
  167.  
  168.     /P=text  Define file prefix.  For  instance,  you  might  want  to
  169.          convert  an  ANSI  score  file  from  a  game to a WC 3.x
  170.          bulletin:
  171.  
  172.          HD SCORE.ANS C:\WC30\BULL\BULL1.BBS /F/N/P=@07@@CLS@^M
  173.  
  174.          This  will  prepend  @07@@CLS@  and  a  CR/LF   pair   to
  175.          BULL1.BBS,  do  it  fast,  and  end  the file at the last
  176.          character of the last non-blank line.   You  can  use  as
  177.          many  ^M's  as  the  command  line will allow.  Some ANSI
  178.          drivers may take ^M (caret-M, NOT Ctrl-M)  literally  and
  179.          ignore  everything  after  it.   In  this case, use ~M to
  180.          force a CR/LF pair.
  181.  
  182.    /S=text   Define file suffix.  As above:
  183.  
  184.          HD SCORE.ANS C:\WC30\BULL\BULL1.BBS /F/N/P=@CLS@/S=~M@PAUSE@
  185.  
  186.          This  will  prepend @CLS@ to BULL1.BBS and append a CR/LF
  187.          pair and @PAUSE@ to the end of the bulletin.
  188.  
  189.    /CLS      This switch will prepend @CLS@@NOPAUSE@ to your converted
  190.          file.  Good choice for making bulletins on the  fly  when
  191.          combined  with  /S=^M@PAUSE@.   When  output is ANSI, the
  192.          escape code "^[2J" is prepended to the file.   No  effect
  193.          whatsoever when output is PCBoard (use a file prefix).
  194.  
  195.    /PC       Force PCBoard output.
  196.  
  197.    /A        Force ANSI output.
  198.  
  199.    /TDF      Fix  Wildcat  @-coded  files  produced  by  utilities  or
  200.          drawing   programs  that  do  not  reset  the  background
  201.          attribute to black at the end of  a  line.   Used  during
  202.          conversion only.
  203.  
  204.    /I        Ignore WC! @-codes in a primarily ANSI file.  Effectively
  205.          shuts off auto-detect of @-coded display files and forces
  206.          ANSI input.  Strips @-codes from the beginning and end of
  207.          a  file.   For  displaying  or  converting.   Used,   for
  208.          instance,  when  you  want  to display or convert an ANSI
  209.          screen that begins with a @CLS@ and ends with a  @PAUSE@,
  210.          and  you  are  too  lazy to edit out the @-codes.  Rarely
  211.          used.  HACKDISP will not allow you  to  use  this  switch
  212.          with  the  /O  (overwrite)  switch.  Very likely to cause
  213.          strange results with PCBoard files.
  214.  
  215.    /D=xxx    Delay  for  xxx  seconds  after  converting  or viewing a
  216.          file.  Ignored during conversion if /F  is  specified  on
  217.          the command line.
  218.  
  219.    /L=xx     Convert  only xx lines of display.  If xx is greater than
  220.          the maximum lines available, HACKDISP will harass you and
  221.          hurt your feelings.
  222.  
  223.    /R        When enabled, HACKDISP will attempt to read or  write  to
  224.          locked files once a second for ten seconds if the initial
  225.          attempt fails.  HACKDISP will emit a clicking sound while
  226.          retrying  the  file.   No  retries  will  be made if this
  227.          parameter is left out and HACKDISP will notify you of the
  228.          error at program exit.  Can be used during conversion  or
  229.          while viewing.
  230.  
  231.          HACKDISP  will  yell  at  you  if you use this switch and
  232.          SHARE.EXE is not installed!
  233.  
  234.    /@        Force HACKDISP to recognize a poorly made  @-coded  file.
  235.          HACKDISP  recognizes a Wildcat or PCBoard @-coded file IF
  236.          AND ONLY IF the first character in the file  is  the  "@"
  237.          symbol.   In  my  opinion,  any  file that purports to be
  238.          @-coded MUST  start  with  either  an  attribute  (@xx@),
  239.          @CLS@,  @NOPAUSE@,  or  whatever.   Files that do NOT are
  240.          considered poorly made.
  241.  
  242.    /B        Viewing only.  Views files in black and white.
  243.  
  244.    /?        View  HACKDISP  help screen.
  245.  
  246.  
  247.  
  248.    Invalid  command  line  switches  are  ignored.   Switches  may  be
  249.    separated  by  spaces  or  run together to save command line space.
  250.    However, the slash character ("/") MUST be  used.   The  underscore
  251.    character  ("_")  in  file  prefixes or suffixes will be translated
  252.    into a space.  File prefixes and suffixes are not  applicable  when
  253.    converting to LAUGHING DOG format.
  254.  
  255.    All command line parameters (including suffixes and  prefixes)  are
  256.    forced  to  UPPER  CASE  by  HACKDISP.   HACKDISP  terminates  with
  257.    ERRORLEVEL 0 upon success, non-zero otherwise.
  258.  
  259.  
  260.  
  261. ================================================================================
  262.  
  263.             HACKDISP DOES WHAT TOMCAT CAN'T!
  264.  
  265. ================================================================================
  266.  
  267.  
  268.          Tomcat has an internal ANSI translation  buffer  that  is
  269.      just  TOO  SMALL for some @-coded screens!  If a line on your
  270.      "problem screen" has a lot of attribute  changes  and  Tomcat
  271.      overflows  this  buffer,  the rest of that line is just plain
  272.      GONE.
  273.  
  274.          ZAP!  Adios!  Siyonara!
  275.  
  276.          The result is an UGLY CHOPPED  UP  ANSI  SCREEN  in  your
  277.      users'  QWK  packets which makes YOU, the sysop, look like an
  278.      idiot.
  279.  
  280.          I think this bug could be easily fixed by  analyzing  the
  281.      worst  case  scenario: every character in a line could have a
  282.      completely different attribute from the preceding  character,
  283.      requiring  a  twelve-byte  ANSI escape sequence to change the
  284.      attribute of each character.   This  would  make  the  buffer
  285.      (13*80)+1  bytes long.  Indeed, a 1K buffer would suffice for
  286.      99.99% of ALL @-coded screens.
  287.  
  288.         HACKDISP's support for ANSI actually  grew  out  of  MSI's
  289.      seeming unwillingness to solve this SIMPLE problem.
  290.  
  291.         If  you  have  an @-coded screen that Tomcat can't handle,
  292.      try this in your MAIL.BAT file:
  293.  
  294.      CD DISP
  295.      HD HELLO1.BBS HELLO1.SCR /A/F/CLS/N/S=^M@PAUSE@
  296.      CD\WC30
  297.      TOMCAT
  298.      CD DISP
  299.      DEL HELLO1.SCR
  300.  
  301.          Sysops  of  multi-line  BBS's may also want to use the /R
  302.      switch to avoid SHARE conflicts.
  303.  
  304.          This  should  fool Tomcat into thinking the *.SCR file is
  305.      the REAL color screen and your users shouldn't have any weird
  306.      truncated screens in their QWK packets.  But remember, if you
  307.      have any cursor-positioning ANSI escape sequences embedded in
  308.      an  @-coded  screen,  HACKDISP  will  treat  them  as   valid
  309.      characters and totally destroy your screen.
  310.  
  311.          Of course, this practice of changing @-coded screens back
  312.      to  ANSI  screens  with  a  third-party utility is absolutely
  313.      ridiculous.  It shouldn't be necessary.  If you have too many
  314.      screens that require this,  the  best  advice  is  to  forget
  315.      @-codes  completely  and  use  separate .SCR and .BBS display
  316.      files.
  317.  
  318.         After  all,  if  your MSI software doesn't totally support
  319.      @-codes, why should you?
  320.  
  321.         Are they listening?
  322.  
  323.  
  324.  
  325. ================================================================================
  326. ================================================================================
  327.  
  328.  
  329.  
  330.                   -=≡POST CRYPT≡=-
  331.  
  332.  
  333.          If you experience any  difficulty  converting  any  ANSI,
  334.      PCBoard,  or LDOG file, viewing any converted file, or if you
  335.      are experiencing strange results when  a  converted  file  is
  336.      displayed by Wildcat, please feel free to upload the original
  337.      ANSI  or  LDOG  file  and the file created by HACKDISP to the
  338.      "Sysop ONLY" file section of The Dead  LEEEEEEEECH!   Society
  339.      BBS  &  Mortuary  at  (614)899-7839  and  the problem will be
  340.      investigated.   Please  leave  a  message  indicating   which
  341.      Wildcat  version  you are using!  I also "hang around" in the
  342.      MSI Support Net conferences, so drop me a message there.
  343.  
  344.          If   you  get  what  appear  to  be  weird  results  when
  345.      displaying a file  created  by  another  utility,  note  that
  346.      HACKDISP  displays  your  files  in  "worst case mode"!  That
  347.      bulletin or menu you're so fond of my look fine while you sit
  348.      in front of Wildcat's local display, but do you  REALLY  know
  349.      what your caller is seeing?  HACKDISP knows.
  350.  
  351.          Remember  that  if  your  ANSI or LDOG screen uses all 80
  352.      columns, the local Wildcat display may  insert  blank  lines.
  353.      Remote viewing will look fine.  It's best to use a maximum of
  354.      79  columns  if  you want things to look pretty on both ends.
  355.      Also, HACKDISP will display  characters  that  Wildcat,  some
  356.      modems,  and  many  communications  programs  may  not  like.
  357.      However, since most ANSI drawing programs don't offer 90%  of
  358.      these characters, it shouldn't be a problem.
  359.  
  360.          @-coded  files  that use ANSI escape sequences for cursor
  361.      positioning will also not display properly and TABs  are  NOT
  362.      expanded by HACKDISP.
  363.  
  364.          Beware  of  ASCII 127!  It is the "tiny house" or "delta"
  365.      character () in the IBM graphics character set,  but  it  is
  366.      hardwired   in   several  telecommunications  packages  as  a
  367.      backspace.  Too bad.  Nice little character.   At  least  all
  368.      MSI products will display it intelligently.
  369.  
  370.          Since  HACKDISP  uses your computer's ANSI driver, a full
  371.      screen (25 line) ANSI file will scroll up and you  WILL  lose
  372.      the  topmost line.  The best workaround for this so far is to
  373.      pop into 43 or 50 line mode and specify  /N  on  the  command
  374.      line.  Of course, if you only have a CGA monitor, you are out
  375.      of  luck.   An internal ANSI driver for HACKDISP is currently
  376.      in the works.  When it's finished HACKDISP will also be  able
  377.      to convert more than the current 50 line maximum.
  378.  
  379.          MODE CON LINES=xx may NOT work with  drivers  other  than
  380.      ANSI.SYS!
  381.  
  382.          Displaying a single "@"  character  is  still  a  hassle.
  383.      HACKDISP  will always display one correctly, but Wildcat gets
  384.      horribly confused whenever it  encounters  one.   Avoid  them
  385.      like  the  plague  and complain about it to MSI.  It's not my
  386.      problem.  I hereby propose that "@@@" or "@@" should  be  the
  387.      @-code for the "@" character.
  388.  
  389.          THANKS FOR DOWNLOADING HACKDISP!
  390.  
  391.  
  392. ================================================================================
  393. ================================================================================
  394.  
  395.  
  396.               -=≡STANDARD DISCLAIMER≡=-
  397.  
  398.      Not   responsible   for   direct,   indirect,  incidental  or
  399.      consequential damages resulting from any  defect,  error,  or
  400.      failure  to perform.  No other warranty expressed or implied.
  401.      Some of the trademarks mentioned in this product  appear  for
  402.      identification   purposes  only.   Any  resemblance  to  real
  403.      persons, living or dead is purely coincidental.   Void  where
  404.      prohibited.    Some   assembly  required.   List  each  check
  405.      separately by bank number.  Batteries not included.  Contents
  406.      may settle during shipment.  Use only as  directed.   Do  not
  407.      use  while  operating  a  motor  vehicle  or heavy equipment.
  408.      Postage will be paid by addressee.  Apply  only  to  affected
  409.      area.   May  be  too intense for some viewers.  Do not stamp.
  410.      Use other side for additional listings.  For recreational use
  411.      only.  Do not disturb.  All models over 18 years of age.   If
  412.      condition    persists,    consult    your    physician.    No
  413.      user-serviceable parts inside.  Freshest if eaten before date
  414.      on carton.  It takes ten first class stamps  to  mail  a  VHS
  415.      cassette.   This  product  is  meant for educational purposes
  416.      only.  Do not apply to mucous membranes.  Subject  to  change
  417.      without notice.  Times approximate.  Simulated picture.  Your
  418.      mileage  may vary.  This is not a news broadcast.  No postage
  419.      necessary if mailed in  the  United  States.   Breaking  seal
  420.      constitutes  acceptance of agreement.  For off-road use only.
  421.      As seen on TV.  One  size  fits  all.   Many  suitcases  look
  422.      alike.    Contains   a  substaintial  amount  of  non-tobacco
  423.      ingredients.  Celebrity  lookalike.   Colors  may,  in  time,
  424.      fade.    Slippery  when  wet.   For  office  use  only.   Not
  425.      affiliated  with  the  American  Red  Cross.   Drop  in   any
  426.      mailbox.    Edited   for   television.   Keep  cool;  process
  427.      promptly.  Post office  will  not  deliver  without  postage.
  428.      List  was  current  at  time  of  printing.  At participating
  429.      locations only.  Not the Beatles.   Substantial  penalty  for
  430.      early  withdrawal.   Grass  catcher  must be attached or door
  431.      closed while engine is running.   Do  not  write  below  this
  432.      line.   Falling  rock.   Lost ticket pays maximum rate.  Your
  433.      cancelled check is your receipt.   Add  toner.   Place  stamp
  434.      here.    Avoid   contact   with  skin.   Sanitized  for  your
  435.      protection.  Be sure each item is  properly  endorsed.   Sign
  436.      here  without  admitting  guilt.  Slightly higher west of the
  437.      Mississippi.  Employees and their families are not  eligible.
  438.      Beware  of dog.  Not responsible for errors in typesetting or
  439.      photography.  Contestants have been briefed on some questions
  440.      before the show.  Limited time  offer,  call  now  to  insure
  441.      prompt delivery.  You must be present to win.  Dramatized for
  442.      television.   Persons  using hold-open latches must remain at
  443.      the refueling point during refueling.  No passes accepted for
  444.      this  engagement.   No  purchase  necessary.   Use  only   in
  445.      well-ventilated area.  Keep away from fire or flame.  Replace
  446.      with  same  type.   Approved for veterans.  Booths for two or
  447.      more.  Check here if tax deductible.  Bleu Cheese 25¢  extra.
  448.      Some  equipment  shown  is  optional.  Price does not include
  449.      taxes.  No Canadian coins.   Not  recommended  for  children.
  450.      Prerecorded   for  this  time  zone.   Reproduction  strictly
  451.      prohibited.   3%  surcharge  on  Visa  and  MasterCard.    No
  452.      solicitors.  No pedestrians, bicycles, or farm machinery.  No
  453.      anchovies  unless otherwise specified.  Vapors harmful.  Stop
  454.      engine.  No smoking.  List  at  least  two  alternate  dates.
  455.      First  pull  up,  then  pull  down.   Call  toll  free before
  456.      digging.  Driver does  not  carry  cash.   Record  additional
  457.      transactions  on  back  of  previous  stub.   Dealer  retains
  458.      incentives.  May not be  available  in  Alaska,  Hawaii,  and
  459.      Puerto Rico.  Sorry, Tennessee!
  460.  
  461.      This notice supersedes all previous notices.
  462.