Skip to content

Commit

Permalink
Update bubbletea/tea.go
Browse files Browse the repository at this point in the history
Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
  • Loading branch information
caarlos0 and aymanbagabas authored Jan 5, 2024
1 parent fd4337e commit 8d5c9c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bubbletea/tea.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ func Middleware(bth Handler) wish.Middleware {
upty, ok := tty.Pty.(pty.UnixPty)
if ok {
f := upty.Slave()
out := termenv.NewOutput(f, termenv.WithColorCache(true))
opts = []tea.ProgramOption{tea.WithInput(f), tea.WithOutput(out)}
opts = []tea.ProgramOption{tea.WithInput(f), tea.WithOutput(f)}
}

renderer := lipgloss.NewRenderer(tty, termenv.WithColorCache(true))
Expand Down

0 comments on commit 8d5c9c2

Please sign in to comment.