fixed color bug

This commit is contained in:
2024-10-03 13:19:43 +02:00
parent 3ceaa13b3f
commit 7e714abddf
2 changed files with 3 additions and 23 deletions
+1 -1
View File
@@ -34,7 +34,6 @@ func NewScreen(c Component) *Screen {
}
func (s *Screen) Render() {
Clear()
width, height := GetTerminalSize()
frame := NewFrame(width, height)
data := s.component.GetComponentData()
@@ -48,6 +47,7 @@ func (s *Screen) Render() {
data.IsActive = true
data.DefaultColor = colors.Reset
RenderOnFrame(s.component, &frame)
Clear()
fmt.Print(strings.Join(frame, "\n"))
}