Debian Codegraph @

debian/vendor/github.com/micro-editor/tcell/v2/raw.go

raw
1 package tcell
2
3 import "time"
4
5 // EventRaw is an event where tcell was not able to
6 // parse the escape sequence, so the escape sequence is
7 // sent directly to the application
8 type EventRaw struct {
9 t time.Time
10 esc string // The escape code
11 }
12
13 // When returns the time when this EventMouse was created.
14 func (ev *EventRaw) When() time.Time {
15 return ev.t
16 }
17
18 func (ev *EventRaw) EscSeq() string {
19 return ev.esc
20 }
21
22 func NewEventRaw(code string) *EventRaw {
23 return &EventRaw{
24 t: time.Now(),
25 esc: code,
26 }
27 }