home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 287.lha / TY_v1.3 / src / less.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-07  |  2.1 KB  |  58 lines

  1. /*************************************************************************
  2.  ***                            less.h                   (JJB TEMPLAR) ***
  3.  *** Date modifications begun: 7/8/89.                                 ***
  4.  *** Last modified: 14/8/89.                                           ***
  5.  *************************************************************************/
  6. /*** Standard include file for less (and ty1.2).                       ***
  7.  *************************************************************************/
  8.  
  9. #include <exec/types.h>
  10. #include <intuition/intuition.h>
  11. #include <libraries/dos.h>
  12.  
  13. #include <proto/exec.h>
  14. #include <proto/dos.h>
  15. #include <proto/intuition.h>
  16.  
  17. #include <string.h>
  18.  
  19. #define END_POSITION    (-2L)
  20. #define NULL_POSITION   (-1L)
  21.  
  22. #define EOF             (0)
  23. #ifndef NULL
  24. #define NULL            (0)
  25. #endif
  26.  
  27. /* How quiet should we be? */
  28. #define NOT_QUIET       0       /* Ring bell at eof and for errors */
  29. #define LITTLE_QUIET    1       /* Ring bell only for errors */
  30. #define VERY_QUIET      2       /* Never ring bell */
  31.  
  32. /* How should we prompt? */
  33. #define PR_SHORT        0       /* Prompt with colon */
  34. #define PR_MEDIUM       1       /* Prompt with message */
  35. #define PR_LONG         2       /* Prompt with longer message */
  36. #define PR_ERROR        3       /* Prompt with last error message */
  37.  
  38. /* How should we handle backspaces? */
  39. #define BS_UNDERLINE    0       /* Underlining converted to underline mode */
  40. #define BS_NORMAL       1       /* \b treated as normal char; actually output */
  41. #define BS_CONTROL      2       /* \b treated as control char; prints as ^H */
  42.  
  43. /* Flag to eq_message() telling what to put in the message */
  44. #define MNAME           001     /* File name */
  45. #define MOF             002     /* "file x of y" */
  46. #define MBYTE           004     /* "byte x/y" */
  47. #define MPCT            010     /* Percentage into the file */
  48.  
  49. /* Special chars used to tell put_line() to do something special */
  50. #define UL_CHAR         '\201'  /* Enter underline mode */
  51. #define UE_CHAR         '\202'  /* Exit underline mode */
  52.  
  53. #define CONTROL(c)      ((c)&037)
  54.  
  55. #define MAXHORIZ    60
  56.  
  57. #include "funcs.h"
  58.