14 lines
249 B
Go
14 lines
249 B
Go
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()
|
|
}
|