From: Thiemo Seufer <ths@networkno.de>
To: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] ncurses: resize console if required
Date: Mon, 28 Apr 2008 11:14:15 +0100 [thread overview]
Message-ID: <20080428101415.GD16597@networkno.de> (raw)
In-Reply-To: <20080428035445.GA8787@tapir>
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);
> }
>
next prev parent reply other threads:[~2008-04-28 10:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-28 3:54 [Qemu-devel] [PATCH] ncurses: resize console if required Carlo Marcelo Arenas Belon
2008-04-28 8:58 ` Samuel Thibault
2008-04-28 17:56 ` Carlo Marcelo Arenas Belon
2008-04-28 23:16 ` Samuel Thibault
2008-04-28 10:14 ` Thiemo Seufer [this message]
2008-04-28 17:31 ` Carlo Marcelo Arenas Belon
2008-04-28 17:20 ` Samuel Thibault
2008-04-28 19:17 ` andrzej zaborowski
2008-04-28 23:18 ` Samuel Thibault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080428101415.GD16597@networkno.de \
--to=ths@networkno.de \
--cc=carenas@sajinet.com.pe \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).