7 "github.com/zyedidia/micro/internal/buffer"
8 "github.com/zyedidia/micro/internal/display"
9 "github.com/zyedidia/tcell"
16 func NewRawPaneFromWin(b *buffer.Buffer, win display.BWindow) *RawPane {
18 rh.BufPane = NewBufPane(b, win)
23 func NewRawPane() *RawPane {
24 b := buffer.NewBufferFromString("", "", buffer.BTRaw)
25 w := display.NewBufWindow(0, 0, 0, 0, b)
26 return NewRawPaneFromWin(b, w)
29 func (h *RawPane) HandleEvent(event tcell.Event) {
30 switch e := event.(type) {
32 if e.Key() == tcell.KeyCtrlQ {
37 h.Buf.Insert(h.Cursor.Loc, reflect.TypeOf(event).String()[7:])
38 h.Buf.Insert(h.Cursor.Loc, fmt.Sprintf(": %q\n", event.EscSeq()))