package action
import (
+ "fmt"
"reflect"
- "github.com/zyedidia/tcell"
"github.com/zyedidia/micro/internal/buffer"
"github.com/zyedidia/micro/internal/display"
+ "github.com/zyedidia/tcell"
)
type RawPane struct {
}
h.Buf.Insert(h.Cursor.Loc, reflect.TypeOf(event).String()[7:])
- // h.Buf.Insert(h.Cursor.Loc, fmt.Sprintf(": %q\n", event.EscSeq()))
- h.Buf.Insert(h.Cursor.Loc, "\n")
+ h.Buf.Insert(h.Cursor.Loc, fmt.Sprintf(": %q\n", event.EscSeq()))
h.Relocate()
}
import (
"runtime"
- "github.com/zyedidia/tcell"
"github.com/zyedidia/clipboard"
"github.com/zyedidia/micro/internal/display"
"github.com/zyedidia/micro/internal/screen"
"github.com/zyedidia/micro/internal/shell"
+ "github.com/zyedidia/tcell"
"github.com/zyedidia/terminal"
)
clipboard.WriteAll(t.GetSelection(t.GetView().Width), "clipboard")
InfoBar.Message("Copied selection to clipboard")
} else if t.Status != shell.TTDone {
- t.WriteString(string(e.Rune()))
+ t.WriteString(event.EscSeq())
}
} else if e, ok := event.(*tcell.EventMouse); e != nil && (!ok || t.State.Mode(terminal.ModeMouseMask)) {
- // t.WriteString(event.EscSeq())
+ t.WriteString(event.EscSeq())
} else if e != nil {
x, y := e.Position()
v := t.GetView()