aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-07-20 11:56:28 -0400
committerGene Cumm <gene.cumm@gmail.com>2010-10-09 07:33:06 -0400
commit912868315714ebb27de25f5f98d58b1aa08f2e1f (patch)
tree1a92d94c8a18351bddb803a25f6297ccecfd6463 /com32/rosh
parent46aa048f6706147d52e471e4cd1a28b8b6d9fbd8 (diff)
downloadsyslinux-912868315714ebb27de25f5f98d58b1aa08f2e1f.tar.gz
syslinux-912868315714ebb27de25f5f98d58b1aa08f2e1f.tar.xz
syslinux-912868315714ebb27de25f5f98d58b1aa08f2e1f.zip
rosh: fix commented out WS usage in linux to grab screen size
Diffstat (limited to 'com32/rosh')
-rw-r--r--com32/rosh/rosh.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/rosh/rosh.h b/com32/rosh/rosh.h
index b016e2f2..118c5316 100644
--- a/com32/rosh/rosh.h
+++ b/com32/rosh/rosh.h
@@ -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)