Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
58 lines
1.6 KiB
Go
58 lines
1.6 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package printer
|
|
|
|
// These are the key that aliases
|
|
const (
|
|
ArrowLeft = rune(KeyCtrlB)
|
|
ArrowRight = rune(KeyCtrlF)
|
|
ArrowUp = rune(KeyCtrlP)
|
|
ArrowDown = rune(KeyCtrlN)
|
|
Space = ' '
|
|
Enter = '\r'
|
|
NewLine = '\n'
|
|
Backspace = rune(KeyCtrlH)
|
|
Backspace2 = rune(KeyDEL)
|
|
)
|
|
|
|
// Key is the ascii codes of a keys
|
|
type Key int16
|
|
|
|
// These are the control keys. Note that they overlap with other keys.
|
|
const (
|
|
KeyCtrlSpace Key = iota
|
|
KeyCtrlA // KeySOH
|
|
KeyCtrlB // KeySTX
|
|
KeyCtrlC // KeyETX
|
|
KeyCtrlD // KeyEOT
|
|
KeyCtrlE // KeyENQ
|
|
KeyCtrlF // KeyACK
|
|
KeyCtrlG // KeyBEL
|
|
KeyCtrlH // KeyBS
|
|
KeyCtrlI // KeyTAB
|
|
KeyCtrlJ // KeyLF
|
|
KeyCtrlK // KeyVT
|
|
KeyCtrlL // KeyFF
|
|
KeyCtrlM // KeyCR
|
|
KeyCtrlN // KeySO
|
|
KeyCtrlO // KeySI
|
|
KeyCtrlP // KeyDLE
|
|
KeyCtrlQ // KeyDC1
|
|
KeyCtrlR // KeyDC2
|
|
KeyCtrlS // KeyDC3
|
|
KeyCtrlT // KeyDC4
|
|
KeyCtrlU // KeyNAK
|
|
KeyCtrlV // KeySYN
|
|
KeyCtrlW // KeyETB
|
|
KeyCtrlX // KeyCAN
|
|
KeyCtrlY // KeyEM
|
|
KeyCtrlZ // KeySUB
|
|
KeyESC // KeyESC
|
|
KeyCtrlBackslash // KeyFS
|
|
KeyCtrlRightSq // KeyGS
|
|
KeyCtrlCarat // KeyRS
|
|
KeyCtrlUnderscore // KeyUS
|
|
KeyDEL = 0x7F
|
|
)
|