key.go (3997B)
1 package input 2 3 type Key uint8 4 5 const ( 6 Down Key = iota + 1 7 Left 8 Right 9 Up 10 End 11 Home 12 Insert 13 PageDown 14 PageUp 15 ) 16 17 const Control rune = 0x1f 18 19 const ( 20 // Control Characters 21 Null rune = 0 22 StartOfHeading rune = 1 23 StartOfText rune = 2 24 EndOfText rune = 3 25 EndOfTransmission rune = 4 26 Enquiry rune = 5 27 Acknowledgment rune = 6 28 Bell rune = 7 29 Backspace rune = 8 30 HorizontalTab rune = 9 31 LineFeed rune = 10 32 VerticalTab rune = 11 33 FormFeed rune = 12 34 CarriageReturn rune = 13 35 ShiftOut rune = 14 36 ShiftIn rune = 15 37 DataLineEscape rune = 16 38 DeviceControl1 rune = 17 39 DeviceControl2 rune = 18 40 DeviceControl3 rune = 19 41 DeviceControl4 rune = 20 42 NegativeAcknowledgment rune = 21 43 SynchronousIdle rune = 22 44 EndOfTransmitBlock rune = 23 45 Cancel rune = 24 46 EndOfMedium rune = 25 47 Substitute rune = 26 48 Escape rune = 27 49 FileSeparator rune = 28 50 GroupSeparator rune = 29 51 RecordSeparator rune = 30 52 UnitSeparator rune = 31 53 54 // Printable Characters 55 Space rune = 32 56 ExclamationMark rune = 33 57 DoubleQuote rune = 34 58 Number rune = 35 59 Dollar rune = 36 60 Percentage rune = 37 61 Ampersand rune = 38 62 SingleQuote rune = 39 63 LeftParenthesis rune = 40 64 RightParenthesis rune = 41 65 Asterisk rune = 42 66 Plus rune = 43 67 Comma rune = 44 68 Hyphen rune = 45 69 Period rune = 46 70 ForwardSlash rune = 47 71 Zero rune = 48 72 One rune = 49 73 Two rune = 50 74 Three rune = 51 75 Four rune = 52 76 Five rune = 53 77 Six rune = 54 78 Seven rune = 55 79 Eight rune = 56 80 Nine rune = 57 81 Colon rune = 58 82 Semicolon rune = 59 83 LessThan rune = 60 84 Equals rune = 61 85 GreaterThan rune = 62 86 QuestionMark rune = 63 87 At rune = 64 88 UpperA rune = 65 89 UpperB rune = 66 90 UpperC rune = 67 91 UpperD rune = 68 92 UpperE rune = 69 93 UpperF rune = 70 94 UpperG rune = 71 95 UpperH rune = 72 96 UpperI rune = 73 97 UpperJ rune = 74 98 UpperK rune = 75 99 UpperL rune = 76 100 UpperM rune = 77 101 UpperN rune = 78 102 UpperO rune = 79 103 UpperP rune = 80 104 UpperQ rune = 81 105 UpperR rune = 82 106 UpperS rune = 83 107 UpperT rune = 84 108 UpperU rune = 85 109 UpperV rune = 86 110 UpperW rune = 87 111 UpperX rune = 88 112 UpperY rune = 89 113 UpperZ rune = 90 114 LeftBracket rune = 91 115 Backslash rune = 92 116 RightBracket rune = 93 117 Caret rune = 94 118 Underscore rune = 95 119 Grave rune = 96 120 LowerA rune = 97 121 LowerB rune = 98 122 LowerC rune = 99 123 LowerD rune = 100 124 LowerE rune = 101 125 LowerF rune = 102 126 LowerG rune = 103 127 LowerH rune = 104 128 LowerI rune = 105 129 LowerJ rune = 106 130 LowerK rune = 107 131 LowerL rune = 108 132 LowerM rune = 109 133 LowerN rune = 110 134 LowerO rune = 111 135 LowerP rune = 112 136 LowerQ rune = 113 137 LowerR rune = 114 138 LowerS rune = 115 139 LowerT rune = 116 140 LowerU rune = 117 141 LowerV rune = 118 142 LowerW rune = 119 143 LowerX rune = 120 144 LowerY rune = 121 145 LowerZ rune = 122 146 LeftBrace rune = 123 147 VerticalBar rune = 124 148 RightBrace rune = 125 149 Tilde rune = 126 150 Delete rune = 127 151 )