home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / v / vim_src.zip / ASCII.H < prev    next >
C/C++ Source or Header  |  1993-01-12  |  798b  |  42 lines

  1. /* vi:ts=4:sw=4
  2.  *
  3.  * VIM - Vi IMitation
  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. #ifdef CTRL
  28. # undef CTRL
  29. #endif
  30. #define CTRL(x) ((x) & 0x1f)
  31.  
  32. /*
  33.  * character that separates dir names in a path
  34.  */
  35. #ifdef MSDOS
  36. # define PATHSEP '\\'
  37. # define PATHSEPSTR "\\"
  38. #else
  39. # define PATHSEP '/'
  40. # define PATHSEPSTR "/"
  41. #endif
  42.