Lines Matching refs:rows
63 static int getConsoleSize(int *rows, int *cols) {
69 *rows = wsz.height;
119 int screenrows; /* Number of rows that we can show */
121 int numrows; /* Number of rows */
321 * cursor is stored at *rows and *cols and 0 is returned. */
322 int getCursorPosition(int ifd, int ofd, int *rows, int *cols) {
329 /* Read the response: ESC [ rows ; cols R */
339 if (sscanf(buf+2,"%d;%d",rows,cols) != 2) return -1;
346 int getWindowSize(int ifd, int ofd, int *rows, int *cols) {
348 if (getConsoleSize(rows, cols) == 0) {
364 retval = getCursorPosition(ifd,ofd,rows,cols);
377 *rows = ws.ws_row;
533 * state changed. This may recursively affect all the following rows
575 /* ======================= Editor rows implementation ======================= */
604 /* Insert a row at the specified position, shifting the other rows on the bottom
647 /* Turn the editor rows into a single heap-allocated string.
723 * logical representaion of the file, add enough empty rows as needed. */
757 /* We are in the middle of a line. Split it between two rows. */
972 /* Create a two rows status. First row: */
1292 perror("Unable to query the screen for size (columns / rows)");