"os"
"runtime"
+ "github.com/atotto/clipboard"
"github.com/go-errors/errors"
"github.com/layeh/gopher-luar"
"github.com/mattn/go-isatty"
L.SetGlobal("BindKey", luar.New(L, BindKey))
L.SetGlobal("MakeCommand", luar.New(L, MakeCommand))
L.SetGlobal("CurView", luar.New(L, CurView))
+ L.SetGlobal("IsWordChar", luar.New(L, IsWordChar))
L.SetGlobal("JobStart", luar.New(L, JobStart))
L.SetGlobal("JobSend", luar.New(L, JobSend))
case event = <-events:
}
+ switch e := event.(type) {
+ case *tcell.EventMouse:
+ if e.Buttons() == tcell.Button1 {
+ _, h := screen.Size()
+ _, y := e.Position()
+ if y == h-1 && messenger.message != "" {
+ clipboard.WriteAll(messenger.message)
+ continue
+ }
+ }
+ }
+
if TabbarHandleMouseEvent(event) {
continue
}