rosh: fix commented out WS usage in linux to grab screen size
authorGene Cumm <gene.cumm@gmail.com>
Tue, 20 Jul 2010 15:56:28 +0000 (11:56 -0400)
committerGene Cumm <gene.cumm@gmail.com>
Sat, 9 Oct 2010 11:33:06 +0000 (07:33 -0400)
com32/rosh/rosh.h

index b016e2f..118c531 100644 (file)
@@ -135,10 +135,10 @@ static inline int getscreensize(int fd, int *rows, int *cols)
     str = NULL;
     if (fd == 1) {
        ioctl(0, TIOCGWINSZ, &ws);
-/*     if (rows)
+       if (rows)
            *rows = ws.ws_row;
        if (cols)
-           *cols = ws.ws_col;*/
+           *cols = ws.ws_col;
        if (rows && !*rows) {
            str = getenv("LINES");
            if (str)