mirror of
https://github.com/charmbracelet/glow
synced 2024-12-13 21:52:37 +00:00
Update altscreen calls per latest Bubble Tea update
This commit is contained in:
parent
fcaa654984
commit
7f9cc95893
3 changed files with 7 additions and 4 deletions
2
go.mod
2
go.mod
|
@ -4,7 +4,7 @@ go 1.13
|
|||
|
||||
require (
|
||||
github.com/charmbracelet/bubbles v0.3.1-0.20200622184921-35c3cd626d97
|
||||
github.com/charmbracelet/bubbletea v0.9.1-0.20200622183546-05f302845295
|
||||
github.com/charmbracelet/bubbletea v0.9.1-0.20200622195552-3a70ecdde174
|
||||
github.com/charmbracelet/charm v0.5.1
|
||||
github.com/charmbracelet/glamour v0.2.0
|
||||
github.com/dustin/go-humanize v1.0.1-0.20200219035652-afde56e7acac
|
||||
|
|
2
go.sum
2
go.sum
|
@ -23,6 +23,8 @@ github.com/charmbracelet/bubbletea v0.7.0/go.mod h1:BTzHOUvUlKecQz7ZB8NgPRWi2Z8N
|
|||
github.com/charmbracelet/bubbletea v0.8.3-0.20200622174044-8bab4bce9a84/go.mod h1:jRlRe1bNetdeBUvRF8G1coY18WB0Gy5EJyT8JJ532pg=
|
||||
github.com/charmbracelet/bubbletea v0.9.1-0.20200622183546-05f302845295 h1:2WSpFUowuWj4jaDzxzauEobCOIJbA6MN4Eu5Zl36cHw=
|
||||
github.com/charmbracelet/bubbletea v0.9.1-0.20200622183546-05f302845295/go.mod h1:HCCbXDXh2SLdnKzU816tszXziiJt6qW32IG2E4t560M=
|
||||
github.com/charmbracelet/bubbletea v0.9.1-0.20200622195552-3a70ecdde174 h1:yoSMCUbQwf1Q+kPg0fPRTU5+lTWNiH4Eesv10Ji1LjE=
|
||||
github.com/charmbracelet/bubbletea v0.9.1-0.20200622195552-3a70ecdde174/go.mod h1:HCCbXDXh2SLdnKzU816tszXziiJt6qW32IG2E4t560M=
|
||||
github.com/charmbracelet/charm v0.5.1 h1:2r6QYeIepEk+wmCXSN4TlotwTF5twlWm87AMGXLahnk=
|
||||
github.com/charmbracelet/charm v0.5.1/go.mod h1:XBsJjir4zSEMSbbI42JSuyTYQAOcg43bsxe+GUoQHUo=
|
||||
github.com/charmbracelet/glamour v0.2.0 h1:mTgaiNiumpqTZp3qVM6DH9UB0NlbY17wejoMf1kM8Pg=
|
||||
|
|
7
main.go
7
main.go
|
@ -185,11 +185,12 @@ func executeArg(cmd *cobra.Command, arg string, w io.Writer) error {
|
|||
}
|
||||
|
||||
// Run Bubble Tea program
|
||||
tea.AltScreen()
|
||||
if err := ui.NewProgram(style, cfg).Start(); err != nil {
|
||||
p := ui.NewProgram(style, cfg)
|
||||
p.EnterAltScreen()
|
||||
if err := p.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
tea.ExitAltScreen()
|
||||
p.ExitAltScreen()
|
||||
|
||||
// Exit message
|
||||
fmt.Printf("\n Thanks for using Glow!\n\n")
|
||||
|
|
Loading…
Reference in a new issue