mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
send to stdout instead of stderr to prevent breaking dual pane
This commit is contained in:
@@ -88,7 +88,7 @@ func main() {
|
||||
m := model{
|
||||
filepicker: fp,
|
||||
}
|
||||
tm, _ := tea.NewProgram(&m, tea.WithOutput(os.Stderr)).Run()
|
||||
tm, _ := tea.NewProgram(&m).Run()
|
||||
mm := tm.(model)
|
||||
fmt.Println("\n You selected: " + m.filepicker.Styles.Selected.Render(mm.selectedFile) + "\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user