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() }