tui/draw_buffer.go
2022-04-01 20:10:51 +02:00

13 lines
208 B
Go

package tui
import (
"github.com/gdamore/tcell"
)
func drawBuffer(scr tcell.Screen, buf *ViewBuffer) {
buf.ForEach(func(x, y int, rn Rune) {
scr.SetContent(x, y, rn.Rn, nil, rn.Style)
})
scr.Show()
}