home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / me34src.zip / me3 / mutt / me.mh < prev    next >
Text File  |  1995-01-14  |  7KB  |  246 lines

  1. ;; me.mh : ME3 Mutt constants
  2. ;; Notes:
  3. ;;   This is a super set of ME2's me2.h so it can be used by ME2 programs.
  4. ;; C Durland    Public Domain
  5.  
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7. ;;;;;;;;;;;;;;;;;;;;;; Mutt Machine Data Types ;;;;;;;;;;;;;;;;;;;;;;;
  8. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  9.  
  10. (const
  11.   NUMBER        0x03
  12.   BOOLEAN        0x05
  13.   STRING        0x08
  14.   LIST            0x09
  15.   CHARACTER        0x0A
  16. )
  17.  
  18. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  19. ;;;;;;;;;;;;;;;;;;;;;;;;;;; Mark Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;
  20. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  21.  
  22. (const
  23.   THE-DOT        0
  24.   THE-MARK        1
  25. )
  26.  
  27. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  28. ;;;;;;;;;;;;;;;;;;;;;;;;;; Buffer Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
  29. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  30.  
  31. (const        ;;; Buffer flags
  32.     ;; ME buffer flags
  33.   BFModified    0x00000001 ;; 1 if buffer has been modified since last save
  34.   BFNoCare    0x00000002 ;; Don't care about buffer contents.
  35.   BFHidden    0x00000004 ;; Buffer is hidden from user.
  36.   BFUndo    0x00000008 ;; Undo bit.  Set => undo is on for buffer
  37.   BFMode    0x00000010 ;; Tickle bit: force (modeline-hook) to be called
  38.   BFImmortal    0x00000020 ;; Not a temporary buffer
  39.   BFInteractive 0x00000040 ;; A buffer for humans
  40.   BFRead_only    0x00000080 ;; Buffer is read only
  41.   BFBad_read    0x00000100 ;; Didn't read file correctly (out of memory)
  42.     ;; Mutt extended buffer flags
  43.   BFHidden2    0x00010000 ;; Additional hidden flag for temp hiding
  44.  
  45.     ;; Buffer flags I use a lot
  46.   BFGone    0x0006    ;; Hidden, no care and not modified
  47.   BFHooHum    0x0026    ;; Immortal, hidden, no care and not modified
  48.   BFFoo        0x0022    ;; Immortal, no care and not modified
  49.   BFHuman    0x0060    ;; Immortal and Interactive
  50. )
  51.  
  52. (const        ;;; Buffer names
  53.   scratch-buffer    "*Scratch*"
  54.   HELP-BUFFER        "*Help*"
  55. )
  56.  
  57. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  58. ;;;;;;;;;;;;;;;;;;;;;;;;;; Region Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
  59. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  60.  
  61. (const
  62.   DOT-ON-SAME-LINE-AS-MARK    1
  63.   DOT-ABOVE-MARK        2
  64.   MARK-ABOVE-DOT        3
  65. )
  66.  
  67. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  68. ;;;;;;;;;;;;;;;;;;;;;;;;;;; Bag Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  69. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  70.  
  71. (const
  72.     ;; Bag types:
  73.   BAG-IS-TEXT        0
  74.   BAG-IS-RECTANGLE    1
  75.  
  76.     ;; Bags allocated by ME:
  77.   CUT-BUFFER        0
  78.  
  79.     ;; append-to-bag constants
  80.   APPEND-TEXT        0
  81.   APPEND-REGION        2
  82.   APPEND-CHARACTERS    1
  83.   APPEND-RECTANGLE    3
  84. )
  85.  
  86. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  87. ;;;;;;;;;;;;;;;;;;;;;;;;;; Keymap Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
  88. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  89.  
  90. (const
  91.   GLOBAL-KEYMAP        0
  92.   LOCAL-KEYMAP        1
  93.   NULL-KEYMAP        2
  94. )
  95.  
  96. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  97. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Key Codes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  98. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  99.  
  100. (const
  101.   Enter-key        0x014D
  102.   Space-bar        0x0020
  103.  
  104.   SHIFT            0x1000
  105.   CTRL            0x0100
  106.   META            0x0200
  107.   PFIX1            0x0400
  108.   PFIX2            0x2000
  109.   PFIX3            0x4000
  110.   SOFKEY        0x0800
  111. )
  112.  
  113. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  114. ;;;;;;;;;;;;;;;;;;;; Command Completion Constants ;;;;;;;;;;;;;;;;;;;;
  115. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  116.  
  117. (const
  118.   CC_SYS        0x01    ;; OBSOLETE!
  119.   CC_PGM        0x02    ;; Mutt programs
  120.   CC_MUTT        0x04    ;; ME Mutt extensions
  121.   CC_BUF        0x08    ;; Buffer names
  122.   CC_SYSVAR        0x10    ;; System Variables
  123.   CC_FNAME        0x20    ;; File names
  124.   CC_LIST        0x40    ;; List of strings
  125.   CC_NO_ASK        0x80    ;; Don't ask
  126. )
  127.  
  128. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  129. ;;;;;;;;;;;;;;;;;;;;;;;;;;; Hook Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;
  130. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  131.  
  132.     ;; Constants used for register-hook (in hook.mut)
  133. (const
  134.    CREATE-BUFFER-HOOK     0
  135.   ICREATE-BUFFER-HOOK     1    ;; interactive buffer created
  136.    READ-FILE-HOOK     2
  137.   IREAD-FILE-HOOK     3    ;; interactive file read
  138.   ENTER-ME-HOOK         4
  139.   LEAVE-ME-HOOK         5
  140.   PROCESS-HOOK         6
  141.    CLEAR-BUFFER-HOOK     7
  142.   ICLEAR-BUFFER-HOOK     8
  143.   COMMAND-LINE-HOOK     9
  144.   STOP-ME-HOOK        10
  145.    FREE-BUFFER-HOOK    11
  146.   IFREE-BUFFER-HOOK    12
  147.   IDLE-HOOK        13
  148.  
  149.     ;; backwards compatibility with ME v2.5
  150.    BUFFER-CREATED-HOOK     0
  151.   IBUFFER-CREATED-HOOK     1
  152. )
  153.  
  154. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  155. ;;;;;;;;;;;;;;;;;;;;;;; process-hook Constants ;;;;;;;;;;;;;;;;;;;;;;;
  156. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  157.  
  158. (const        ;; event types
  159.   PROCESS-DONE        0
  160.   OUTPUT-STDOUT        1
  161.   OUTPUT-STDERR        2
  162.   PERROR        3
  163.   CLIENT-MSG        5
  164. )
  165.  
  166. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  167. ;;;;;;;;;;;;;;;;;;;;;;;;; stop-ME Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
  168. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  169.  
  170. (const
  171.   HALT-ALL-PROGRAMS    0
  172.   EXIT-ME        1
  173.  
  174.     ;; Additional constants that can be sent by stop-ME-hook
  175.   EXIT-ME-VIA-SIGNAL    2
  176. )
  177.  
  178.  
  179. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  180. ;;;;;;;;;;;;;;;;;;;;;;; Command Flag Constants ;;;;;;;;;;;;;;;;;;;;;;;
  181. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  182.  
  183. (const
  184.   CMDFLG-SET        0
  185.   CMDFLG-TEST        1
  186.   CMDFLG-NTEST        2
  187.   CMDFLG-NTEST-AND-SET    3
  188.   CMDFLG-GEN-FLAG    4
  189.  
  190.   CF-CHAR        1    ;; command flag: Insert character(s)
  191.   CF-UNDO        2    ;; command flag: Undo
  192.   CF-CUT        3    ;; command flag: Cut buffer
  193.   CF-LINE        4    ;; command flag: Line movement
  194.   CF-YANK        5    ;; command flag: Yank
  195. )
  196.  
  197. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  198. ;;;;;;;;;;;;;;;;;;;;;; Keyboard Macro Constants ;;;;;;;;;;;;;;;;;;;;;;
  199. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  200.  
  201. (const
  202.   MACRO-OFF        0
  203.   MACRO-RECORDING    1
  204.   MACRO-PLAYING        2
  205.  
  206.   MACRO-START        10
  207.   MACRO-END        11
  208.   MACRO-REPLAY        12
  209.   MACRO-STATE        13
  210. )
  211.  
  212. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  213. ;;;;;;;;;;;;;;;;;;;;;;;;; File I/O Constants ;;;;;;;;;;;;;;;;;;;;;;;;;
  214. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  215.  
  216. (const
  217.   FIO_SUC        0    ;; File I/O: Success
  218.   FIO_FNF        1    ;; File I/O: File not found
  219.   FIO_EOF        2    ;; File I/O: End of file
  220.   FIO_ERR        3    ;; File I/O: Error
  221.   FIO_BAD_NAME        4    ;; File I/O: Bad file name
  222.   FIO_NO_MEM        5    ;; File I/O: No memory
  223.   FIOREAD_ONLY        6    ;; File I/O: Buffer is Read Only
  224. )
  225.  
  226. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  227. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Mouse ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  228. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  229.  
  230. ;; (small-int button row col state modifiers)    ;; MouseInfo
  231.  
  232. ;; button: 1, 2 ... 5
  233. ;; Row, column:  Screen coordinates of mouse.  (1,1) is upper left corner.
  234. ;; modifiers:  bit-or of zero or more of: SHIFT, CTRL, META
  235.  
  236. (const        ;; Mouse state
  237.   BUTTON-DOWN    0
  238.   BUTTON-UP    1
  239.   BUTTON-CLICK    2
  240.   BUTTON-2CLICK    3
  241. )
  242.  
  243. (const
  244.   MOUSE-KEY    "S-m"
  245. )
  246.