qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] curses: resize terminal to fit console size


From: Samuel Thibault
Subject: Re: [Qemu-devel] [PATCH v2] curses: resize terminal to fit console size
Date: Thu, 1 May 2008 15:15:31 +0100
User-agent: Mutt/1.5.12-2006-07-14

Carlo Marcelo Arenas Belon, le Thu 01 May 2008 02:52:40 -0500, a écrit :
> @@ -367,6 +372,11 @@
>  
>      invalidate = 1;
>  
> +    /* check type of console and if it can be resized */
> +    term = getenv("TERM");
> +    if (strcmp(term, "linux") == 0) {
> +        term_resizable = 0;
> +    }

That should be the converse, i.e. check for the terminals you _know_
support it: rxvt*, xterm* at least. There are far more ttys (I mean also
_real_ terminals, not only xterms) that don't support it than ttys that
do.

Samuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]