1// +build !windows 2 3package promptui 4 5import "github.com/chzyer/readline" 6 7// These runes are used to identify the commands entered by the user in the command prompt. They map 8// to specific actions of promptui in prompt mode and can be remapped if necessary. 9var ( 10 // KeyEnter is the default key for submission/selection. 11 KeyEnter rune = readline.CharEnter 12 13 // KeyBackspace is the default key for deleting input text. 14 KeyBackspace rune = readline.CharBackspace 15 16 // KeyPrev is the default key to go up during selection. 17 KeyPrev rune = readline.CharPrev 18 KeyPrevDisplay = "↑" 19 20 // KeyNext is the default key to go down during selection. 21 KeyNext rune = readline.CharNext 22 KeyNextDisplay = "↓" 23 24 // KeyBackward is the default key to page up during selection. 25 KeyBackward rune = readline.CharBackward 26 KeyBackwardDisplay = "←" 27 28 // KeyForward is the default key to page down during selection. 29 KeyForward rune = readline.CharForward 30 KeyForwardDisplay = "→" 31) 32