func (w *TermWindow) Clear() {
for y := 0; y < w.Height; y++ {
for x := 0; x < w.Width; x++ {
- screen.Screen.SetContent(w.X+x, w.Y+y, ' ', nil, config.DefStyle)
+ screen.SetContent(w.X+x, w.Y+y, ' ', nil, config.DefStyle)
}
}
}
st = st.Reverse(true)
}
- screen.Screen.SetContent(w.X+x, w.Y+y, c, nil, st)
+ screen.SetContent(w.X+x, w.Y+y, c, nil, st)
}
}
if config.GetGlobalOption("statusline").(bool) {
if x < textLen {
r, size := utf8.DecodeRune(text)
text = text[size:]
- screen.Screen.SetContent(w.X+x, w.Y+w.Height, r, nil, statusLineStyle)
+ screen.SetContent(w.X+x, w.Y+w.Height, r, nil, statusLineStyle)
} else {
- screen.Screen.SetContent(w.X+x, w.Y+w.Height, ' ', nil, statusLineStyle)
+ screen.SetContent(w.X+x, w.Y+w.Height, ' ', nil, statusLineStyle)
}
}
}
if w.State.CursorVisible() && w.active {
curx, cury := w.State.Cursor()
- screen.Screen.ShowCursor(curx+w.X, cury+w.Y)
+ screen.ShowCursor(curx+w.X, cury+w.Y)
}
}