mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-10 14:16:41 +03:00
Use termenv for terminal control
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/charmbracelet/tea"
|
||||
|
||||
"github.com/muesli/termenv"
|
||||
)
|
||||
|
||||
type Model struct {
|
||||
@@ -110,7 +112,7 @@ func cursor(s string, blink bool) string {
|
||||
if blink {
|
||||
return s
|
||||
}
|
||||
return tea.Invert(s)
|
||||
return termenv.String(s).Reverse().String()
|
||||
}
|
||||
|
||||
// Subscription
|
||||
|
Reference in New Issue
Block a user