MCPcopy Create free account
hub / github.com/charmbracelet/bubbletea / height

Method height

examples/cellbuffer/main.go:106–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106func (c cellbuffer) height() int {
107 h := len(c.cells) / c.stride
108 if len(c.cells)%c.stride != 0 {
109 h++
110 }
111 return h
112}
113
114func (c cellbuffer) ready() bool {
115 return len(c.cells) > 0

Callers 1

setMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected