Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
106
func
(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
114
func
(c cellbuffer) ready() bool {
115
return
len(c.cells) > 0
Callers
1
set
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected