MCPcopy
hub / github.com/mum4k/termdash / BackBuffer

Method BackBuffer

private/faketerm/faketerm.go:109–114  ·  view source on GitHub ↗

BackBuffer returns the back buffer of the fake terminal.

()

Source from the content-addressed store, hash-verified

107
108// BackBuffer returns the back buffer of the fake terminal.
109func (t *Terminal) BackBuffer() buffer.Buffer {
110 t.mu.Lock()
111 defer t.mu.Unlock()
112
113 return t.buffer
114}
115
116// String prints out the buffer into a string.
117// This includes the cell runes only, cell options are ignored.

Callers 12

DiffFunction · 0.80
TestSetCellAndApplyFunction · 0.80
TestClearFunction · 0.80
TestApplyFullWidthRunesFunction · 0.80
countCellsWithFGColorFunction · 0.80
firstEmptyCellFunction · 0.80
TestDrawThresholdFunction · 0.80
hasColoredRuneFunction · 0.80

Calls

no outgoing calls

Tested by 11

TestSetCellAndApplyFunction · 0.64
TestClearFunction · 0.64
TestApplyFullWidthRunesFunction · 0.64
countCellsWithFGColorFunction · 0.64
firstEmptyCellFunction · 0.64
TestDrawThresholdFunction · 0.64
hasColoredRuneFunction · 0.64