[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] ncurses: resize console if required
From: |
Carlo Marcelo Arenas Belon |
Subject: |
[Qemu-devel] [PATCH] ncurses: resize console if required |
Date: |
Sun, 27 Apr 2008 22:54:45 -0500 |
User-agent: |
Mutt/1.4.1i |
The following patch instructs qemu to print an escape command to resize the
curses console to 80x25 if detected to have a different geometry (xterm and
friends use 80x24 by default).
Carlo
---
Index: curses.c
===================================================================
--- curses.c (revision 4274)
+++ curses.c (working copy)
@@ -367,6 +367,11 @@
invalidate = 1;
+ /* check size of console and try to adjust if needed */
+ getmaxyx(stdscr, gheight, gwidth);
+ if ((gwidth != 80) || (gheight != 25)) {
+ printf("\033[8;25;80t");
+ }
/* Standard VGA initial text mode dimensions */
curses_resize(ds, 80, 25);
}
- [Qemu-devel] [PATCH] ncurses: resize console if required,
Carlo Marcelo Arenas Belon <=