1package ansiterm
2
3type AnsiEventHandler interface {
4	// Print
5	Print(b byte) error
6
7	// Execute C0 commands
8	Execute(b byte) error
9
10	// CUrsor Up
11	CUU(int) error
12
13	// CUrsor Down
14	CUD(int) error
15
16	// CUrsor Forward
17	CUF(int) error
18
19	// CUrsor Backward
20	CUB(int) error
21
22	// Cursor to Next Line
23	CNL(int) error
24
25	// Cursor to Previous Line
26	CPL(int) error
27
28	// Cursor Horizontal position Absolute
29	CHA(int) error
30
31	// Vertical line Position Absolute
32	VPA(int) error
33
34	// CUrsor Position
35	CUP(int, int) error
36
37	// Horizontal and Vertical Position (depends on PUM)
38	HVP(int, int) error
39
40	// Text Cursor Enable Mode
41	DECTCEM(bool) error
42
43	// Origin Mode
44	DECOM(bool) error
45
46	// 132 Column Mode
47	DECCOLM(bool) error
48
49	// Erase in Display
50	ED(int) error
51
52	// Erase in Line
53	EL(int) error
54
55	// Insert Line
56	IL(int) error
57
58	// Delete Line
59	DL(int) error
60
61	// Insert Character
62	ICH(int) error
63
64	// Delete Character
65	DCH(int) error
66
67	// Set Graphics Rendition
68	SGR([]int) error
69
70	// Pan Down
71	SU(int) error
72
73	// Pan Up
74	SD(int) error
75
76	// Device Attributes
77	DA([]string) error
78
79	// Set Top and Bottom Margins
80	DECSTBM(int, int) error
81
82	// Index
83	IND() error
84
85	// Reverse Index
86	RI() error
87
88	// Flush updates from previous commands
89	Flush() error
90}
91