home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
me34src.zip
/
me3
/
mutt
/
me.mh
< prev
next >
Wrap
Text File
|
1995-01-14
|
7KB
|
246 lines
;; me.mh : ME3 Mutt constants
;; Notes:
;; This is a super set of ME2's me2.h so it can be used by ME2 programs.
;; C Durland Public Domain
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;; Mutt Machine Data Types ;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
NUMBER 0x03
BOOLEAN 0x05
STRING 0x08
LIST 0x09
CHARACTER 0x0A
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;; Mark Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
THE-DOT 0
THE-MARK 1
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;; Buffer Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const ;;; Buffer flags
;; ME buffer flags
BFModified 0x00000001 ;; 1 if buffer has been modified since last save
BFNoCare 0x00000002 ;; Don't care about buffer contents.
BFHidden 0x00000004 ;; Buffer is hidden from user.
BFUndo 0x00000008 ;; Undo bit. Set => undo is on for buffer
BFMode 0x00000010 ;; Tickle bit: force (modeline-hook) to be called
BFImmortal 0x00000020 ;; Not a temporary buffer
BFInteractive 0x00000040 ;; A buffer for humans
BFRead_only 0x00000080 ;; Buffer is read only
BFBad_read 0x00000100 ;; Didn't read file correctly (out of memory)
;; Mutt extended buffer flags
BFHidden2 0x00010000 ;; Additional hidden flag for temp hiding
;; Buffer flags I use a lot
BFGone 0x0006 ;; Hidden, no care and not modified
BFHooHum 0x0026 ;; Immortal, hidden, no care and not modified
BFFoo 0x0022 ;; Immortal, no care and not modified
BFHuman 0x0060 ;; Immortal and Interactive
)
(const ;;; Buffer names
scratch-buffer "*Scratch*"
HELP-BUFFER "*Help*"
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;; Region Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
DOT-ON-SAME-LINE-AS-MARK 1
DOT-ABOVE-MARK 2
MARK-ABOVE-DOT 3
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;; Bag Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
;; Bag types:
BAG-IS-TEXT 0
BAG-IS-RECTANGLE 1
;; Bags allocated by ME:
CUT-BUFFER 0
;; append-to-bag constants
APPEND-TEXT 0
APPEND-REGION 2
APPEND-CHARACTERS 1
APPEND-RECTANGLE 3
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;; Keymap Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
GLOBAL-KEYMAP 0
LOCAL-KEYMAP 1
NULL-KEYMAP 2
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Key Codes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
Enter-key 0x014D
Space-bar 0x0020
SHIFT 0x1000
CTRL 0x0100
META 0x0200
PFIX1 0x0400
PFIX2 0x2000
PFIX3 0x4000
SOFKEY 0x0800
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;; Command Completion Constants ;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
CC_SYS 0x01 ;; OBSOLETE!
CC_PGM 0x02 ;; Mutt programs
CC_MUTT 0x04 ;; ME Mutt extensions
CC_BUF 0x08 ;; Buffer names
CC_SYSVAR 0x10 ;; System Variables
CC_FNAME 0x20 ;; File names
CC_LIST 0x40 ;; List of strings
CC_NO_ASK 0x80 ;; Don't ask
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;; Hook Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Constants used for register-hook (in hook.mut)
(const
CREATE-BUFFER-HOOK 0
ICREATE-BUFFER-HOOK 1 ;; interactive buffer created
READ-FILE-HOOK 2
IREAD-FILE-HOOK 3 ;; interactive file read
ENTER-ME-HOOK 4
LEAVE-ME-HOOK 5
PROCESS-HOOK 6
CLEAR-BUFFER-HOOK 7
ICLEAR-BUFFER-HOOK 8
COMMAND-LINE-HOOK 9
STOP-ME-HOOK 10
FREE-BUFFER-HOOK 11
IFREE-BUFFER-HOOK 12
IDLE-HOOK 13
;; backwards compatibility with ME v2.5
BUFFER-CREATED-HOOK 0
IBUFFER-CREATED-HOOK 1
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;; process-hook Constants ;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const ;; event types
PROCESS-DONE 0
OUTPUT-STDOUT 1
OUTPUT-STDERR 2
PERROR 3
CLIENT-MSG 5
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;; stop-ME Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
HALT-ALL-PROGRAMS 0
EXIT-ME 1
;; Additional constants that can be sent by stop-ME-hook
EXIT-ME-VIA-SIGNAL 2
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;; Command Flag Constants ;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
CMDFLG-SET 0
CMDFLG-TEST 1
CMDFLG-NTEST 2
CMDFLG-NTEST-AND-SET 3
CMDFLG-GEN-FLAG 4
CF-CHAR 1 ;; command flag: Insert character(s)
CF-UNDO 2 ;; command flag: Undo
CF-CUT 3 ;; command flag: Cut buffer
CF-LINE 4 ;; command flag: Line movement
CF-YANK 5 ;; command flag: Yank
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;; Keyboard Macro Constants ;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
MACRO-OFF 0
MACRO-RECORDING 1
MACRO-PLAYING 2
MACRO-START 10
MACRO-END 11
MACRO-REPLAY 12
MACRO-STATE 13
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;; File I/O Constants ;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(const
FIO_SUC 0 ;; File I/O: Success
FIO_FNF 1 ;; File I/O: File not found
FIO_EOF 2 ;; File I/O: End of file
FIO_ERR 3 ;; File I/O: Error
FIO_BAD_NAME 4 ;; File I/O: Bad file name
FIO_NO_MEM 5 ;; File I/O: No memory
FIOREAD_ONLY 6 ;; File I/O: Buffer is Read Only
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Mouse ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; (small-int button row col state modifiers) ;; MouseInfo
;; button: 1, 2 ... 5
;; Row, column: Screen coordinates of mouse. (1,1) is upper left corner.
;; modifiers: bit-or of zero or more of: SHIFT, CTRL, META
(const ;; Mouse state
BUTTON-DOWN 0
BUTTON-UP 1
BUTTON-CLICK 2
BUTTON-2CLICK 3
)
(const
MOUSE-KEY "S-m"
)