Lines Matching refs:cols
76 inline ScrollbackLine(dimen_t _cols) : cols(_cols) {
77 mCells = new VTermScreenCell[cols];
83 inline dimen_t copyFrom(dimen_t cols, const VTermScreenCell* cells) {
84 dimen_t n = this->cols > cols ? cols : this->cols;
89 inline dimen_t copyTo(dimen_t cols, VTermScreenCell* cells) {
90 dimen_t n = cols > this->cols ? this->cols : cols;
99 const dimen_t cols;
121 status_t resize(dimen_t rows, dimen_t cols, dimen_t scrollRows);
123 status_t onPushline(dimen_t cols, const VTermScreenCell* cells);
124 status_t onPopline(dimen_t cols, VTermScreenCell* cells);
236 static int term_sb_pushline(int cols, const VTermScreenCell *cells, void *user) {
242 return term->onPushline(cols, cells);
245 static int term_sb_popline(int cols, VTermScreenCell *cells, void *user) {
251 return term->onPopline(cols, cells);
416 status_t Terminal::resize(dimen_t rows, dimen_t cols, dimen_t scrollRows) {
419 ALOGD("resize(%d, %d, %d)", rows, cols, scrollRows);
422 mCols = cols;
425 struct winsize size = { rows, cols, 0, 0 };
428 vterm_set_size(mVt, rows, cols);
434 status_t Terminal::onPushline(dimen_t cols, const VTermScreenCell* cells) {
438 if (mScroll[mScrollCur - 1]->cols == cols) {
450 line = new ScrollbackLine(cols);
459 line->copyFrom(cols, cells);
463 status_t Terminal::onPopline(dimen_t cols, VTermScreenCell* cells) {
472 dimen_t n = line->copyTo(cols, cells);
473 for (dimen_t col = n; col < cols; col++) {
498 if ((size_t) pos.col < line->cols) {
508 line->getCell(line->cols - 1, cell);
567 jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) {
569 return term->resize(rows, cols, scrollRows);