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