package termui import tm "github.com/nsf/termbox-go" const TOP_RIGHT = '┐' const VERTICAL_LINE = '│' const HORIZONTAL_LINE = '─' const TOP_LEFT = '┌' const BOTTOM_RIGHT = '┘' const BOTTOM_LEFT = '└' type Box struct { X int Y int Width int Height int Border bool FgColor tm.Attribute BgColor tm.Attribute } type HLine struct { X int Y int Length int FgColor tm.Attribute BgColor tm.Attribute } type VLine struct { X int Y int Length int FgColor tm.Attribute BgColor tm.Attribute } func (l HLine) Buffer() []Point{ pts := make([]Point,l.Length) for i:=0;i