summaryrefslogtreecommitdiff
path: root/com32/cmenu
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-30 17:11:33 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-01 11:45:10 -0700
commit9c8c9a77af8e5ebed158b4f6f2dfb08ff3188e01 (patch)
tree894ef4a977946a3acbd15d5645553d4c0bbbfc7c /com32/cmenu
parent4d4ddf97886dc9482694975b70dacfe28a2f2ba1 (diff)
downloadsyslinux-9c8c9a77af8e5ebed158b4f6f2dfb08ff3188e01.tar.gz
cmenu: use 80x25 as terminal size by default
Let's not rely on the geometry returned by the BIOS for the terminal size - we don't know anything about the one used via serial. We now default to 80x25, regardless of what the BIOS returns. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/libmenu/com32io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/cmenu/libmenu/com32io.h b/com32/cmenu/libmenu/com32io.h
index 8fb32306..b23aeeeb 100644
--- a/com32/cmenu/libmenu/com32io.h
+++ b/com32/cmenu/libmenu/com32io.h
@@ -95,12 +95,12 @@ static inline unsigned char readbiosb(unsigned int ofs)
static inline char getnumrows()
{
- return readbiosb(0x484)+1; // Actually numrows - 1
+ return 25;
}
static inline char getnumcols(void)
{
- return readbiosb(0x44a); // Actually numcols
+ return 80;
}
static inline char getshiftflags(void)