Home | History | Annotate | Download | only in jni

Lines Matching refs:cols

78     inline ScrollbackLine(dimen_t _cols) : cols(_cols) {
79 mCells = new VTermScreenCell[cols];
85 inline dimen_t copyFrom(dimen_t cols, const VTermScreenCell* cells) {
86 dimen_t n = this->cols > cols ? cols : this->cols;
91 inline dimen_t copyTo(dimen_t cols, VTermScreenCell* cells) {
92 dimen_t n = cols > this->cols ? this->cols : cols;
101 const dimen_t cols;
112 Terminal(jobject callbacks, dimen_t rows, dimen_t cols);
123 status_t resize(dimen_t rows, dimen_t cols, dimen_t scrollRows);
125 status_t onPushline(dimen_t cols, const VTermScreenCell* cells);
126 status_t onPopline(dimen_t cols, VTermScreenCell* cells);
238 static int term_sb_pushline(int cols, const VTermScreenCell *cells, void *user) {
244 return term->onPushline(cols, cells);
247 static int term_sb_popline(int cols, VTermScreenCell *cells, void *user) {
253 return term->onPopline(cols, cells);
269 Terminal::Terminal(jobject callbacks, dimen_t rows, dimen_t cols) :
270 mCallbacks(callbacks), mRows(rows), mCols(cols), mKilled(false),
279 mVt = vterm_new(rows, cols);
418 status_t Terminal::resize(dimen_t rows, dimen_t cols, dimen_t scrollRows) {
421 ALOGD("resize(%d, %d, %d)", rows, cols, scrollRows);
424 mCols = cols;
427 struct winsize size = { rows, cols, 0, 0 };
430 vterm_set_size(mVt, rows, cols);
436 status_t Terminal::onPushline(dimen_t cols, const VTermScreenCell* cells) {
440 if (mScroll[mScrollCur - 1]->cols == cols) {
452 line = new ScrollbackLine(cols);
461 line->copyFrom(cols, cells);
465 status_t Terminal::onPopline(dimen_t cols, VTermScreenCell* cells) {
474 dimen_t n = line->copyTo(cols, cells);
475 for (dimen_t col = n; col < cols; col++) {
500 if ((size_t) pos.col < line->cols) {
510 line->getCell(line->cols - 1, cell);
554 jint rows, jint cols) {
555 return reinterpret_cast<jlong>(new Terminal(callbacks, rows, cols));
570 jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) {
572 return term->resize(rows, cols, scrollRows);