home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume25 / ils / get.h < prev    next >
Text File  |  1992-02-28  |  797b  |  21 lines

  1. /* defines for my getstring routine */
  2. /* %W% */
  3.  
  4. #define INITIAL    0
  5. #define GET_CLEAR    0x03    /* control c */
  6. #define    GET_UP        0x0b    /* control k */
  7. #define GET_DOWN    0x0a    /* control j */
  8. #define GET_LEFT    0x08    /* control h */
  9. #define GET_RIGHT    0x0c    /* control l */
  10. #define GET_TAB        0x09    /* control i */
  11. #define GET_RETURN    0x0d    /* control m */
  12. #define GET_DELETE      24    /* control x */
  13. #define GET_DELETE2    0x7f    /* delete key on most terminals */
  14. #define GET_ESCAPE    0x1b    /* escape */
  15.  
  16. /* types of characters that can be specified for getstring input */
  17. #define SHOW        0 /* only show the string, don't ask for input */
  18. #define NUM_ONLY    1 /* only numeric characters 0-9 */
  19. #define LETTER_ONLY    2 /* only letters a-z, A-Z and space (' ') */
  20. #define ALL_ALPHA    3 /* all printable ascii characters are permitted */
  21.