Lines Matching refs:rows
21 const wrapWord = (rows, word, columns) => { argument
25 let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
31 rows[rows.length - 1] += character;
33 rows.push(character);
51 rows.push('');
58 if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
59 rows[rows.length - 2] += rows.pop();
100 let rows = ['']; variable
104 rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
107 let rowLength = stringWidth(rows[rows.length - 1]);
112 rows.push('');
117 rows[rows.length - 1] += ' ';
129 rows.push('');
132 wrapWord(rows, word, columns);
138 wrapWord(rows, word, columns);
142 rows.push('');
146 wrapWord(rows, word, columns);
150 rows[rows.length - 1] += word;
154 rows = rows.map(stringVisibleTrimSpacesRight);
157 pre = rows.join('\n');