From owner-freebsd-questions@FreeBSD.ORG Fri Jul 23 20:51:58 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF4BC106566B for ; Fri, 23 Jul 2010 20:51:58 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7ECC58FC12 for ; Fri, 23 Jul 2010 20:51:58 +0000 (UTC) Received: from r55.edvax.de (port-92-195-179-206.dynamic.qsc.de [92.195.179.206]) by mx02.qsc.de (Postfix) with ESMTP id 338181DCF4 for ; Fri, 23 Jul 2010 22:51:56 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o6NKptcf005105 for ; Fri, 23 Jul 2010 22:51:55 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 23 Jul 2010 22:51:55 +0200 From: Polytropon To: FreeBSD Questions Message-Id: <20100723225155.33668534.freebsd@edvax.de> In-Reply-To: <20100723192454.GB7343@dan.emsphone.com> References: <20100723202450.ea80c86f.freebsd@edvax.de> <20100723210814.44ff8bd1.freebsd@edvax.de> <20100723192454.GB7343@dan.emsphone.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Text mode screen size max. compatibility X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 20:51:58 -0000 Chuck, Dan, Andrew, this is exactly what I was looking for. The manpages of resozeterm and the mentioning of KEY_RESIZE in getch()'s input queue gives a good solution to call a specific function when in any input loop. The needed information about the new screen dimensions can then easily be obtained, and screen features can be rearranged and re- painted. Ncurses really rocks. :-) Thank you! -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...