Lines Matching refs:line

80 	HistoryLine* line = LineAt(index);
81 if (line == NULL)
85 const char* chars = line->Chars();
88 AttributesRun* attributesRun = line->AttributesRuns();
89 int32 attributesRunCount = line->attributesRunCount;
93 for (int32 i = 0; i < line->byteLength;) {
131 buffer->softBreak = line->softBreak;
132 buffer->attributes = line->attributes;
139 HistoryBuffer::AddLine(const TerminalLine* line)
141 //debug_printf("HistoryBuffer::AddLine(%p): length: %d\n", line, line->length);
142 // determine the amount of memory we need for the line
146 for (int32 i = 0; i < line->length; i++) {
147 const TerminalCell& cell = line->cells[i];
162 // allocate and translate the line
169 for (int32 i = 0; i < line->length; i++) {
170 const TerminalCell& cell = line->cells[i];
202 attributesRun->length = line->length - attributesRun->offset;
204 historyLine->softBreak = line->softBreak;
205 historyLine->attributes = line->attributes;
206 //debug_printf(" line: \"%.*s\", history size now: %ld\n", historyLine->byteLength, historyLine->Chars(), fSize);
227 HistoryLine* line = &fLines[fNextLine];
229 line->attributesRuns = attributesRun;
230 line->attributesRunCount = 0;
231 line->byteLength = 0;
232 line->softBreak = false;
258 // we need at least one spare line slot
268 HistoryLine* line = _LineAt(fSize - toDrop - 1);
269 int32 offset = (uint8*)line->AttributesRuns() - fBuffer;
280 HistoryLine* line = _LineAt(fSize - toDrop - 1);
281 int32 offset = (uint8*)line->AttributesRuns() - fBuffer;
282 if (offset + line->BufferSize() <= fBufferAllocationOffset
290 // init the line
291 HistoryLine* line = &fLines[fNextLine];
294 line->attributesRuns = (AttributesRun*)(fBuffer + fBufferAllocationOffset);
295 line->attributesRunCount = attributesRuns;
296 line->byteLength = byteLength;
302 return line;