perfomance boost

This commit is contained in:
2024-10-03 20:02:56 +02:00
parent f2f7e51750
commit 0f052d7652
5 changed files with 80 additions and 28 deletions
+2
View File
@@ -52,6 +52,7 @@ func (s *Screen) Render() {
}
func (s *Screen) Run() {
DisableEcho()
data := s.component.GetComponentData()
data.Screen = s
for {
@@ -59,6 +60,7 @@ func (s *Screen) Run() {
k, _ := ReadKey()
if s.component.Update(k) {
ShowCursor()
EnableEcho()
return
}
}