tui/draw_buffer.go

13 lines
208 B
Go
Raw Normal View History

2021-01-10 21:52:29 +01:00
package tui
import (
"github.com/gdamore/tcell"
)
2022-04-01 20:10:51 +02:00
func drawBuffer(scr tcell.Screen, buf *ViewBuffer) {
buf.ForEach(func(x, y int, rn Rune) {
scr.SetContent(x, y, rn.Rn, nil, rn.Style)
2021-01-10 21:52:29 +01:00
})
scr.Show()
}