projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46aa048
)
rosh: fix commented out WS usage in linux to grab screen size
author
Gene Cumm
<gene.cumm@gmail.com>
Tue, 20 Jul 2010 15:56:28 +0000
(11:56 -0400)
committer
Gene Cumm
<gene.cumm@gmail.com>
Sat, 9 Oct 2010 11:33:06 +0000
(07:33 -0400)
com32/rosh/rosh.h
patch
|
blob
|
history
diff --git
a/com32/rosh/rosh.h
b/com32/rosh/rosh.h
index
b016e2f
..
118c531
100644
(file)
--- 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)