home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / prompt / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.0 KB  |  26 lines

  1. SAMPLE command and result     | Comments about the output
  2.  
  3.   PROMPT $v$_Disk$q$n:        This example changes the DOS prompt to the DOS
  4.                 version number, then goes to the next line and
  5. MS-DOS Version 3.31        displays the default drive letter with a colon.
  6. Disk=C:
  7.  
  8.  
  9.   PROMPT            The command PROMPT without any options resets
  10. C>                the DOS prompt to the default, $n$g.
  11.  
  12.   PROMPT $e[2J$p        This example will clear the screen and print
  13.                 the current directory at the top of the screen
  14.                 after every command. This is not very useful.
  15.  
  16.   PROMPT $e[0;59;"HELP";13p    This example will reassign the F1 key to act
  17.                 as though HELP had been entered, and then the
  18.                 Enter, Return, or <──┘ key had been pressed.
  19.  
  20.   PROMPT $e[21;27p        This example will reassign the Ctrl-U key to
  21.                 act as though the Esc key had been pressed.
  22.  
  23.   PROMPT $e[08;0;75p        This example will reassign the Ctrl-H key to
  24.                 act as though the left cursor (<-) key had been
  25.                 pressed.
  26.