Skip to content

Commit

Permalink
fix: withoutrenderer when output isn't a tty, not input
Browse files Browse the repository at this point in the history
fixes #199

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jan 25, 2024
1 parent 8d6920f commit 8684176
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ var (
}

if !isInputTTY() {
opts = append(opts, tea.WithInput(nil), tea.WithoutRenderer())
opts = append(opts, tea.WithInput(nil))
}
if !isOutputTTY() {
opts = append(opts, tea.WithoutRenderer())
}

if isNoArgs() && isInputTTY() {
Expand Down

0 comments on commit 8684176

Please sign in to comment.