Annotation of src/usr.bin/less/cmd.h, Revision 1.1
1.1 ! etheisen 1: /*
! 2: * Copyright (c) 1984,1985,1989,1994,1995 Mark Nudelman
! 3: * All rights reserved.
! 4: *
! 5: * Redistribution and use in source and binary forms, with or without
! 6: * modification, are permitted provided that the following conditions
! 7: * are met:
! 8: * 1. Redistributions of source code must retain the above copyright
! 9: * notice, this list of conditions and the following disclaimer.
! 10: * 2. Redistributions in binary form must reproduce the above copyright
! 11: * notice in the documentation and/or other materials provided with
! 12: * the distribution.
! 13: *
! 14: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
! 15: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 16: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
! 17: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
! 18: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
! 19: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
! 20: * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
! 21: * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
! 22: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
! 23: * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
! 24: * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
! 25: */
! 26:
! 27:
! 28: #define MAX_USERCMD 500
! 29: #define MAX_CMDLEN 16
! 30:
! 31: #define A_B_LINE 2
! 32: #define A_B_SCREEN 3
! 33: #define A_B_SCROLL 4
! 34: #define A_B_SEARCH 5
! 35: #define A_DIGIT 6
! 36: #define A_DISP_OPTION 7
! 37: #define A_DEBUG 8
! 38: #define A_EXAMINE 9
! 39: #define A_FIRSTCMD 10
! 40: #define A_FREPAINT 11
! 41: #define A_F_LINE 12
! 42: #define A_F_SCREEN 13
! 43: #define A_F_SCROLL 14
! 44: #define A_F_SEARCH 15
! 45: #define A_GOEND 16
! 46: #define A_GOLINE 17
! 47: #define A_GOMARK 18
! 48: #define A_HELP 19
! 49: #define A_NEXT_FILE 20
! 50: #define A_PERCENT 21
! 51: #define A_PREFIX 22
! 52: #define A_PREV_FILE 23
! 53: #define A_QUIT 24
! 54: #define A_REPAINT 25
! 55: #define A_SETMARK 26
! 56: #define A_SHELL 27
! 57: #define A_STAT 28
! 58: #define A_FF_LINE 29
! 59: #define A_BF_LINE 30
! 60: #define A_VERSION 31
! 61: #define A_VISUAL 32
! 62: #define A_F_WINDOW 33
! 63: #define A_B_WINDOW 34
! 64: #define A_F_BRACKET 35
! 65: #define A_B_BRACKET 36
! 66: #define A_PIPE 37
! 67: #define A_INDEX_FILE 38
! 68: #define A_UNDO_SEARCH 39
! 69:
! 70:
! 71:
! 72: #define A_AGAIN_SEARCH 43
! 73: #define A_T_AGAIN_SEARCH 44
! 74: #define A_REVERSE_SEARCH 45
! 75: #define A_T_REVERSE_SEARCH 46
! 76: #define A_OPT_TOGGLE 47
! 77: #define A_OPT_SET 48
! 78: #define A_OPT_UNSET 49
! 79: #define A_F_FOREVER 50
! 80: #define A_GOPOS 51
! 81:
! 82: #define A_INVALID 100
! 83: #define A_NOACTION 101
! 84: #define A_UINVALID 102
! 85: #define A_END_LIST 103
! 86:
! 87: #define A_EXTRA 0200
! 88:
! 89:
! 90: /* Line editting characters */
! 91:
! 92: #define EC_BACKSPACE 1
! 93: #define EC_LINEKILL 2
! 94: #define EC_RIGHT 3
! 95: #define EC_LEFT 4
! 96: #define EC_W_LEFT 5
! 97: #define EC_W_RIGHT 6
! 98: #define EC_INSERT 7
! 99: #define EC_DELETE 8
! 100: #define EC_HOME 9
! 101: #define EC_END 10
! 102: #define EC_W_BACKSPACE 11
! 103: #define EC_W_DELETE 12
! 104: #define EC_UP 13
! 105: #define EC_DOWN 14
! 106: #define EC_EXPAND 15
! 107: #define EC_F_COMPLETE 17
! 108: #define EC_B_COMPLETE 18
! 109: #define EC_LITERAL 19
! 110:
! 111: #define EC_UINVALID 102
! 112:
! 113: /* Flags for editchar() */
! 114: #define EC_PEEK 01
! 115: #define EC_NOHISTORY 02
! 116: #define EC_NOCOMPLETE 04
! 117: