-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathactions.go
More file actions
46 lines (40 loc) · 858 Bytes
/
actions.go
File metadata and controls
46 lines (40 loc) · 858 Bytes
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
42
43
44
45
46
package ansi
// https://bluesock.org/~willkg/dev/ansi.html
// https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_sequences
type Action interface {
ActionString() string
}
type Print []byte
type Reset struct{}
type SetForeground Color
type SetBackground Color
type SetBold bool
type SetFaint bool
type SetItalic bool
type SetUnderline bool
type SetBlink bool
type SetInverted bool
type SetFraktur bool
type SetFramed bool
type Linebreak struct{}
type CarriageReturn struct{}
type CursorUp int
type CursorDown int
type CursorForward int
type CursorBack int
type CursorPosition Pos
type CursorColumn int
type EraseDisplay EraseMode
type EraseLine EraseMode
type SaveCursorPosition struct{}
type RestoreCursorPosition struct{}
type Pos struct {
Line int
Col int
}
type EraseMode uint8
const (
EraseToEnd EraseMode = iota
EraseToBeginning
EraseAll
)