MCPcopy
hub / github.com/liamg/darktile / clear

Method clear

internal/app/darktile/termutil/buffer.go:641–646  ·  view source on GitHub ↗

tested to here

()

Source from the content-addressed store, hash-verified

639// tested to here
640
641func (buffer *Buffer) clear() {
642 for i := 0; i < int(buffer.ViewHeight()); i++ {
643 buffer.lines = append(buffer.lines, newLine())
644 }
645 buffer.setPosition(0, 0)
646}
647
648// creates if necessary
649func (buffer *Buffer) getCurrentLine() *Line {

Callers 4

TestClearWithoutFullViewFunction · 0.80
TestClearWithFullViewFunction · 0.80
handleANSIMethod · 0.80
csiSetModeMethod · 0.80

Calls 3

ViewHeightMethod · 0.95
setPositionMethod · 0.95
newLineFunction · 0.85

Tested by 2

TestClearWithoutFullViewFunction · 0.64
TestClearWithFullViewFunction · 0.64