Remove some debug output

pull/232/head
Simon Roberts 3 years ago
parent 13c391335f
commit 443ae4ecab
No known key found for this signature in database
GPG Key ID: 0F30F99E6B771FD4

@ -274,7 +274,6 @@ func (c *Colorscheme) ToSprintf(name string) ISprintf {
attrs = append(attrs, fcolor.Attribute(r))
attrs = append(attrs, fcolor.Attribute(g))
attrs = append(attrs, fcolor.Attribute(b))
// log.Debugf("XXX added FG color %s", attrs)
}
}
}
@ -292,7 +291,6 @@ func (c *Colorscheme) ToSprintf(name string) ISprintf {
attrs = append(attrs, fcolor.Attribute(r))
attrs = append(attrs, fcolor.Attribute(g))
attrs = append(attrs, fcolor.Attribute(b))
// log.Debugf("XXX added BG color %s", attrs)
}
}
}
@ -335,27 +333,22 @@ func (c *Colorscheme) Style(name string) tcell.Style {
func (c *Colorscheme) tcellColor(name string) tcell.Color {
v, ok := c.colors[name].(string)
if !ok {
// log.Debugf("XXX tcellColor(%s) could not be found!", name)
return tcell.ColorDefault
}
if color, found := TcellColorschemeColorsMap[v]; found {
// log.Debugf("XXX tcellColor(%s => %s) FOUND %s", name, v, color)
return color
}
color := tcell.GetColor(v)
if color != tcell.ColorDefault {
// log.Debugf("XXX tcellColor(%s => %s) GET %s", name, v, color)
return color
}
// find closest X11 color to RGB
// if code, ok := HexToAnsi(v); ok {
// // log.Debugf("XXX tcellColor(%s => %s) HEX %s", name, v, code)
// return tcell.PaletteColor(int(code) & 0xff)
// }
// log.Debugf("XXX tcellColor(%s => %s) FALLTHROUGH %s", name, v, color)
return color
}

@ -11,7 +11,6 @@ import (
"time"
"github.com/gdamore/tcell/v2"
log "github.com/sirupsen/logrus"
)
type Event struct {
@ -77,7 +76,6 @@ func evtKbd(e tcell.EventKey) EvtKbd {
}
func crtTermboxEvt(e tcell.Event) Event {
log.Debugf("XXX crtTermboxEvt")
ne := Event{From: "/sys", Time: e.When().Unix()}
switch tev := e.(type) {
case *tcell.EventResize:
@ -86,7 +84,7 @@ func crtTermboxEvt(e tcell.Event) Event {
ne.Path = "/sys/wnd/resize"
ne.Data = wnd
ne.Type = "window"
log.Debugf("XXX Resized to %d,%d", wnd.Width, wnd.Height)
// log.Debugf("XXX Resized to %d,%d", wnd.Width, wnd.Height)
return ne
case *tcell.EventMouse:
m := EvtMouse{}

Loading…
Cancel
Save