home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / util / vim-2.0.lha / Vim-2.0 / src / ascii.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-15  |  794 b   |  40 lines

  1. /* vi:ts=4:sw=4
  2.  *
  3.  * VIM - Vi IMproved
  4.  *
  5.  * Code Contributions By:    Bram Moolenaar            mool@oce.nl
  6.  *                            Tim Thompson            twitch!tjt
  7.  *                            Tony Andrews            onecom!wldrdg!tony 
  8.  *                            G. R. (Fred) Walter        watmath!watcgl!grwalter 
  9.  */
  10.  
  11. /*
  12.  * Definitions of various common control characters
  13.  */
  14.  
  15. #define NUL                     '\000'
  16. #define BS                        '\010'
  17. #define BS_STR                    "\010"
  18. #define TAB                     '\011'
  19. #define NL                        '\012'
  20. #define NL_STR                    "\012"
  21. #define CR                        '\015'
  22. #define ESC                     '\033'
  23. #define ESC_STR                 "\033"
  24. #define DEL                     0x7f
  25. #define CSI                     0x9b
  26.  
  27. #define Ctrl(x) ((x) & 0x1f)
  28. #define Meta(x) ((x) | 0x80)
  29.  
  30. /*
  31.  * character that separates dir names in a path
  32.  */
  33. #ifdef MSDOS
  34. # define PATHSEP '\\'
  35. # define PATHSEPSTR "\\"
  36. #else
  37. # define PATHSEP '/'
  38. # define PATHSEPSTR "/"
  39. #endif
  40.