// Redraw schedules a redraw with the draw channel
func Redraw() {
- DrawChan <- true
+ select {
+ case DrawChan <- true:
+ default:
+ // channel is full
+ }
}
type screenCell struct {
// Init creates and initializes the tcell screen
func Init() {
- DrawChan = make(chan bool, 8)
+ DrawChan = make(chan bool)
// Should we enable true color?
truecolor := os.Getenv("MICRO_TRUECOLOR") == "1"