* simv2: wip * simulation: exec adapter start/stop * simulation: add node status to exec adapter * simulation: initial simulation code * simulation: exec adapter, configure path to executable * simulation: initial docker adapter * simulation: wip kubernetes adapter * simulation: kubernetes adapter proxy * simulation: implement GetAll/StartAll/StopAll * simulation: kuberentes adapter - set env vars and resource limits * simulation: discovery test * simulation: remove port definitions within docker adapter * simulation: simplify wait for healthy loop * simulation: get nat ip addr from interface * simulation: pull docker images automatically * simulation: NodeStatus -> NodeInfo * simulation: move discovery test to example dir * simulation: example snapshot usage * simulation: add goclient specific simulation * simulation: add peer connections to snapshot * simulation: close rpc client * simulation: don't export kubernetes proxy server * simulation: merge simulation code * simulation: don't export nodemap * simulation: rename SimulationSnapshot -> Snapshot * simulation: linting fixes * simulation: add k8s available helper func * simulation: vendor * simulation: fix 'no non-test Go files' when building * simulation: remove errors from interface methods where non were returned * simulation: run getHealthInfo check in parallel
91 lines
1.2 KiB
Go
91 lines
1.2 KiB
Go
package ansiterm
|
|
|
|
type AnsiEventHandler interface {
|
|
// Print
|
|
Print(b byte) error
|
|
|
|
// Execute C0 commands
|
|
Execute(b byte) error
|
|
|
|
// CUrsor Up
|
|
CUU(int) error
|
|
|
|
// CUrsor Down
|
|
CUD(int) error
|
|
|
|
// CUrsor Forward
|
|
CUF(int) error
|
|
|
|
// CUrsor Backward
|
|
CUB(int) error
|
|
|
|
// Cursor to Next Line
|
|
CNL(int) error
|
|
|
|
// Cursor to Previous Line
|
|
CPL(int) error
|
|
|
|
// Cursor Horizontal position Absolute
|
|
CHA(int) error
|
|
|
|
// Vertical line Position Absolute
|
|
VPA(int) error
|
|
|
|
// CUrsor Position
|
|
CUP(int, int) error
|
|
|
|
// Horizontal and Vertical Position (depends on PUM)
|
|
HVP(int, int) error
|
|
|
|
// Text Cursor Enable Mode
|
|
DECTCEM(bool) error
|
|
|
|
// Origin Mode
|
|
DECOM(bool) error
|
|
|
|
// 132 Column Mode
|
|
DECCOLM(bool) error
|
|
|
|
// Erase in Display
|
|
ED(int) error
|
|
|
|
// Erase in Line
|
|
EL(int) error
|
|
|
|
// Insert Line
|
|
IL(int) error
|
|
|
|
// Delete Line
|
|
DL(int) error
|
|
|
|
// Insert Character
|
|
ICH(int) error
|
|
|
|
// Delete Character
|
|
DCH(int) error
|
|
|
|
// Set Graphics Rendition
|
|
SGR([]int) error
|
|
|
|
// Pan Down
|
|
SU(int) error
|
|
|
|
// Pan Up
|
|
SD(int) error
|
|
|
|
// Device Attributes
|
|
DA([]string) error
|
|
|
|
// Set Top and Bottom Margins
|
|
DECSTBM(int, int) error
|
|
|
|
// Index
|
|
IND() error
|
|
|
|
// Reverse Index
|
|
RI() error
|
|
|
|
// Flush updates from previous commands
|
|
Flush() error
|
|
}
|