File: keys.go

package info (click to toggle)
golang-github-bowery-prompt 0.0~git20160808.0.d43c270-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 128 kB
  • ctags: 186
  • sloc: makefile: 2
file content (41 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2013-2015 Bowery, Inc.

package prompt

// Line ending in raw mode.
var crlf = []byte("\r\n")

const (
	backKey  = '\u007f'
	escKey   = '\u001B'
	spaceKey = '\u0020'
)

const (
	ctrlA = iota + 1
	ctrlB
	ctrlC
	ctrlD
	ctrlE
	ctrlF
	ctrlG
	ctrlH
	tabKey
	ctrlJ
	ctrlK
	ctrlL
	returnKey
	ctrlN
	ctrlO
	ctrlP
	ctrlQ
	ctrlR
	ctrlS
	ctrlT
	ctrlU
	ctrlV
	ctrlW
	ctrlX
	ctrlY
	ctrlZ
)