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