home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / summary / keyboard / assign.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.5 KB  |  22 lines

  1.             ASSIGNMENT OF KEYS
  2.  
  3. You can assign (change, map, program) what occurs in the computer in response 
  4. to pressing a key. For the assignments to work, most DOS systems require the 
  5. line DEVICE=ANSI.SYS in the CONFIG.SYS file. Any assignments you make will 
  6. probably be ignored by separately purchased programs. You are limited to about 
  7. 200 stored characters for such assignments, and each assignment occupies at 
  8. least 4 characters. See the "SUMMARY COMMAND_EDITING" topic for information 
  9. about the default key assignments for function keys.
  10.  
  11. Key (re)assignment can be done by the PROMPT, ECHO, and ESC commands. Such 
  12. commands are usually stored in a batch file. Such a batch file MUST run with 
  13. ECHO OFF, or the keys won't get reassigned. Each command used to reassign a 
  14. key must be displayed on the screen, or ANSI.SYS won't "see" the escape string,
  15. and no reassignment will occur. When PROMPT command(s) are used, each command 
  16. will erase the screen. After a series of such PROMPT commands, you will
  17. probably want to enter a final PROMPT to re-establish the prompt displayed 
  18. by DOS to solicit your next command. Instead of a PROMPT command, an ECHO 
  19. command can be used. An ESC command can also be used (on those systems which 
  20. have the ESC command). The first "[" on these PROMPT, ECHO, and ESC commands 
  21. is required. Subsequent "["s and "]"s indicate that what follows is optional.
  22.