MCPcopy
hub / github.com/docker/compose / allocateSpace

Function allocateSpace

cmd/formatter/shortcut.go:370–376  ·  view source on GitHub ↗
(lines int)

Source from the content-addressed store, hash-verified

368}
369
370func allocateSpace(lines int) {
371 for range lines {
372 clearLine()
373 newLine()
374 carriageReturn()
375 }
376}
377
378func extraLines(s string) int {
379 return int(math.Floor(float64(lenAnsi(s)) / float64(goterm.Width())))

Callers 1

createBufferMethod · 0.85

Calls 3

clearLineFunction · 0.85
newLineFunction · 0.85
carriageReturnFunction · 0.85

Tested by

no test coverage detected