Skip to content
Myr

Comments in the pager example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 9cf57ef · Browse files · 1 file+8 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−2 removed

  • other:+8 added−2 removed

1 file+8 added−2 removed

modified:examples/pager/main.go+8 added-2 removed
10 unmodified lines
11 "github.com/mattn/go-runewidth"12)1314const (15 // You usually won't need this unless you're processing some pretty stuff16 // with some pretty complicated ANSI escape sequences. Turn it on if you17 // notice flickering.18 //19 // Also note that high performance rendering only works for programs that20 // use the full size of the terminal. We're enabling that below with21 // tea.AltScreen().15 useHighPerformanceRenderer = true22 useHighPerformanceRenderer = false2324 headerHeight = 325 footerHeight = 326)
1 unmodified line
28func main() {2930 // Load some text to render31 content, err := ioutil.ReadFile("artichoke.md")25 //content, err := ioutil.ReadFile("menagerie.txt")32 if err != nil {33 fmt.Println("could not load file:", err)34 os.Exit(1)35 }
114 unmodified lines