tui/draw_buffer.go

14 lines
249 B
Go
Raw Normal View History

2021-01-10 21:52:29 +01:00
package tui
import (
"git.tordarus.net/tordarus/buf2d"
"github.com/gdamore/tcell"
)
func drawBuffer(scr tcell.Screen, buf *buf2d.Buffer) {
buf.Draw(func(x, y int, cn rune) {
scr.SetContent(x, y, cn, nil, tcell.StyleDefault)
})
scr.Show()
}