home *** CD-ROM | disk | FTP | other *** search
/ Big Blue Disk 3 / bbd03.zip / ECCO.DOC < prev    next >
Text File  |  1986-11-14  |  3KB  |  64 lines

  1. ^1                           ECCO (Italian: "Behold!")
  2.                                By Bryan Higgins
  3.  
  4.                        Echo arguments for MS-DOS, PC-DOS
  5.  
  6. This is a substitute for the ECHO command in MS-DOS.  Like ECHO, ECCO outputs
  7. a given line (all characters following the word "ECCO" on the command line) to 
  8. the standard output device (the screen, unless redirected through the ">" 
  9. operator or the CTTY command). 
  10.  
  11. Then why is ECCO needed, if it only duplicates an existing command?  Because 
  12. ECHO has a few problems.  For instance, it is difficult to use ECHO to output
  13. the words "ON" and "OFF", since these are special commands.  It is also 
  14. difficult to cause special control characters to be output, such as linefeeds, 
  15. bells, backspaces, etc.  These difficulties are remedied with ECCO.
  16.  
  17. ECCO does not recognize "ON" and "OFF" as commands, thus allowing you to 
  18. output strings that begin with these words.  (You need to use the ECHO command 
  19. if you actually do want to issue an "ECHO ON" or "ECHO OFF" command.)  Also, a
  20. method (described below) is provided to insert whatever bizarre control 
  21. characters you wish, without actually having to type them.
  22.  
  23. ECCO is useful for causing lines to be output within batch files.  It will work 
  24. whether or not "ECHO OFF" is set.  For example, 
  25.  
  26.                          ECCO Compiling program
  27.  
  28. will write "Compiling program" to the terminal.
  29.  
  30. Unusual characters may be specified with a backslash followed by the three-
  31. digit octal ASCII code for the character.  All three digits must be given.  
  32.  
  33.                          ECCO \007Ding, ding!\007
  34.                          ECCO Here are\015\012two lines
  35.  
  36. (Note:  007 is the octal code for a bell character, which causes a beep to 
  37. sound.  015 is a carriage return, and 012 is a line feed.  A carriage return 
  38. followed by a linefeed causes your PC to go to the start of a new line.) 
  39.  
  40. To output a true backslash, use two:
  41.  
  42.                          ECCO Here is one backslash: \\; two: \\\\
  43.  
  44.  
  45.                   Special use of ECCO for DEC Rainbow users:
  46.  
  47. To get rid of the nauseating ECHO OFF which appears when you first turn echo 
  48. off (anyone out there know how to patch COMMAND.COM to fix this?): 
  49.  
  50.                          echo off
  51.                          ecco \033[2A\033[J\033[A
  52.  
  53. The second line sends the escape sequences to move the cursor up and erase the 
  54. offending prose.  (033 is the octal code for the ESC character, and the other 
  55. characters are command sequences recognized by the Rainbow's operating 
  56. system.)  I don't think it's that easy on the IBM PC (unless running the funky 
  57. ANSI driver).  
  58.  
  59.                   Copyright (c) 1985, 1986 by Bryan Higgins.
  60.  
  61. DISK FILES THIS PROGRAM USES:
  62.                                 ECCO.COM
  63.                                 ECCO.DOC  (This documentation)
  64.