src.elv.sh/pkg/cli/term.Buffer.Lines (field)
55 uses
src.elv.sh/pkg/cli/term (current package)
buffer.go#L55: Lines Lines
buffer.go#L68: return &Buffer{Width: width, Lines: [][]Cell{make([]Cell, 0, width)}}
buffer.go#L73: return CellsWidth(b.Lines[len(b.Lines)-1])
buffer.go#L78: return Pos{len(b.Lines) - 1, b.Col()}
buffer.go#L85: l += len(buf.Lines)
buffer.go#L96: if high > len(b.Lines) {
buffer.go#L97: high = len(b.Lines)
buffer.go#L100: b.Lines[i] = nil
buffer.go#L102: for i := high; i < len(b.Lines); i++ {
buffer.go#L103: b.Lines[i] = nil
buffer.go#L105: b.Lines = b.Lines[low:high]
buffer.go#L115: if b2 != nil && b2.Lines != nil {
buffer.go#L117: b.Dot.Line = b2.Dot.Line + len(b.Lines)
buffer.go#L120: b.Lines = append(b.Lines, b2.Lines...)
buffer.go#L131: for ; i < len(b.Lines) && i < len(b2.Lines); i++ {
buffer.go#L132: if w0 := CellsWidth(b.Lines[i]); w0 < w {
buffer.go#L133: b.Lines[i] = append(b.Lines[i], makeSpacing(w-w0)...)
buffer.go#L135: b.Lines[i] = append(b.Lines[i], b2.Lines[i]...)
buffer.go#L137: for ; i < len(b2.Lines); i++ {
buffer.go#L138: row := append(makeSpacing(w), b2.Lines[i]...)
buffer.go#L139: b.Lines = append(b.Lines, row)
buffer.go#L155: for _, line := range b.Lines {
writer.go#L73: if buf.Width != w.curBuf.Width && w.curBuf.Lines != nil {
writer.go#L75: w.curBuf.Lines = nil
writer.go#L120: logger.Printf("going to write %d lines of notifications", len(bufNoti.Lines))
writer.go#L124: for _, line := range bufNoti.Lines {
writer.go#L130: if len(w.curBuf.Lines) > 0 {
writer.go#L131: w.curBuf.Lines = w.curBuf.Lines[1:]
writer.go#L136: logger.Printf("going to write %d lines, oldBuf had %d", len(buf.Lines), len(w.curBuf.Lines))
writer.go#L139: for i, line := range buf.Lines {
writer.go#L145: if !fullRefresh && i < len(w.curBuf.Lines) {
writer.go#L147: if eq, j = CompareCells(line, w.curBuf.Lines[i]); eq {
writer.go#L157: if !fullRefresh && i < len(w.curBuf.Lines) && j < len(w.curBuf.Lines[i]) {
writer.go#L163: if len(w.curBuf.Lines) > len(buf.Lines) && !fullRefresh {
src.elv.sh/pkg/cli
app.go#L271: if addon != nil && len(buf.Lines) < height {
app.go#L272: bufListing := addon.Render(width, height-len(buf.Lines))
src.elv.sh/pkg/cli/mode
instant.go#L41: if len(buf.Lines) >= height {
instant.go#L45: bufTextView := w.textView.Render(width, height-len(buf.Lines))
navigation.go#L96: bufColView := w.colView.Render(width, height-len(buf.Lines))
src.elv.sh/pkg/cli/tk
codearea_render.go#L100: case len(b.Lines) <= maxHeight:
combobox.go#L51: bufListBox := w.listBox.Render(width, height-len(buf.Lines))
src.elv.sh/pkg/edit
buf_to_html.go#L15: for _, line := range b.Lines {