Lines Matching refs:rows
170 return cursorPos.rows === displayPos.rows &&
177 const rows = displayPos.rows - cursorPos.rows + 1;
178 moveCursor(repl.output, 0, rows);
180 moveCursor(repl.output, 0, -rows);
186 let pos, rows;
190 rows = pos.displayPos.rows - pos.cursorPos.rows;
191 moveCursor(repl.output, 0, rows);
197 if (newPos.rows === 0 || (pos && pos.displayPos.rows === newPos.rows)) {
204 moveCursor(repl.output, 0, -rows);
275 moveCursor(repl.output, 0, displayPos.rows - cursorPos.rows);
281 const rows = newPos.rows - cursorPos.rows - (newPos.cols === 0 ? 1 : 0);
282 moveCursor(repl.output, 0, -rows);
449 const rows = displayPos.rows - cursorPos.rows;
450 moveCursor(repl.output, 0, rows);
453 moveCursor(repl.output, 0, -rows - 1);
635 let rows = 0;
638 rows = repl._getDisplayPos(`${repl.getPrompt()}${line}`).rows;
641 rows = repl.getCursorPos().rows;
644 if (rows !== 0)
645 moveCursor(repl.output, 0, -rows);
656 // To know exactly how many rows we have to move the cursor back we need the
657 // cursor rows, the output rows and the input rows.
663 const inputRows = inputPos.rows - (inputPos.cols === 0 ? 1 : 0);
665 rows = -1 - inputRows - (outputPos.rows - cursorPos.rows);
667 moveCursor(repl.output, 0, rows);
687 moveCursor(repl.output, 0, promptPos.rows);
692 const { cols, rows } = repl.getCursorPos();
694 moveCursor(repl.output, 0, rows);