[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] ncurses: resize console if required
From: |
Thiemo Seufer |
Subject: |
Re: [Qemu-devel] [PATCH] ncurses: resize console if required |
Date: |
Mon, 28 Apr 2008 11:14:15 +0100 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
Carlo Marcelo Arenas Belon wrote:
> 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).
Sounds like this should be specific to the PC/VGA emulation.
Thiemo
> 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);
> }
>