qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Ryan Harper <ryanh@us.ibm.com>
To: andrzej zaborowski <balrogg@gmail.com>
Cc: Paul Brook <paul@codesourcery.com>,
	Ryan Harper <ryanh@us.ibm.com>,
	qemu-devel@nongnu.org, kvm@vger.kernel.org,
	Ian Kirk <blob@blob.co.uk>
Subject: Re: [Qemu-devel] [PATCH 1/1][RESEND] v2: Fix text console size/resize when using curses
Date: Mon, 15 Sep 2008 12:35:03 -0500	[thread overview]
Message-ID: <20080915173503.GT17312@us.ibm.com> (raw)
In-Reply-To: <fb249edb0809150948y18cd4e08x306148c19ac425d5@mail.gmail.com>

* andrzej zaborowski <balrogg@gmail.com> [2008-09-15 11:51]:
> Hi,

Hello,

> 
> 2008/9/4 Ryan Harper <ryanh@us.ibm.com>:
> > v2: drop initial size adjustment, not needed.
> >
> > Resize events fail to ensure that both the text console and curses display areas
> > are the same size; this causes broken output like:
> 
> It seems that this was broken by r4812.  Your patch looks correct but

Thanks for taking a look,

> I think it will prevent things like -serial vc:80Cx24C from working as
> documented. There's a conflict here: either virtual consoles have
> commandline-set fixed size or they adjust to the window size like
> before r4812 and don't have parts that don't fit on the screen. The
> SDL window is not resizable but the curses window is always resizable.
>  I propose to add TEXT_CONSOLE_FIXED_SIZE back, it was removed by
> r4812.  I will do this unless there are better ideas.

I'll test the -serial to see if that breaks with the current patch..
I'm also looking at an alternative.  I think that in curses.c if on
window change event we can send a qemu_console_resize() to the text
consoles with the new width,height, that does the work of getting the
width/height in sync.  I'll send an update if I get that working.

> 
> Another idea would be to set the default console size to 640x400 and
> agree to not support terminals < 80x24.

I'm not sure that would fix it completely, I'm pretty sure the output
still looks broken even if your terminal is bigger than the min size
required.

> 
> Regards
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253   T/L: 678-9253
ryanh@us.ibm.com

  reply	other threads:[~2008-09-15 17:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04 16:10 [Qemu-devel] [PATCH 0/1][RESEND] v2: Fix monitor console in curses mode Ryan Harper
2008-09-04 16:10 ` [Qemu-devel] [PATCH 1/1][RESEND] v2: Fix text console size/resize when using curses Ryan Harper
2008-09-15 16:48   ` andrzej zaborowski
2008-09-15 17:35     ` Ryan Harper [this message]
2008-09-15 18:42       ` andrzej zaborowski

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=20080915173503.GT17312@us.ibm.com \
    --to=ryanh@us.ibm.com \
    --cc=balrogg@gmail.com \
    --cc=blob@blob.co.uk \
    --cc=kvm@vger.kernel.org \
    --cc=paul@codesourcery.com \
    --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).