bug-ncurses
[Top][All Lists]
Advanced

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

CDK & Terminal Resizing


From: Marc Smith
Subject: CDK & Terminal Resizing
Date: Fri, 8 Apr 2011 20:10:52 -0400

Hi,

I didn't see a separate list for "ncurses user questions", so I'm
assuming this list is for that as well. If not, I'd appreciate it if
anyone could redirect me to the right place.

So, I'm using CDK (5.0.20081105) (ncurses 5.7) to develop a text user
interface. Resizing terminals doesn't seem to play nice with the CDK
widgets -- the text on the screen is messed up after resizing the
terminal to something smaller than what was started with and then back
to the original size (or bigger).

I've experimented with other ncurses related things (mc, dialog, etc.)
and they seem to resize correctly. I understand I can catch the
SIGWINCH via KEY_RESIZE / getch() and I am able to do that, but I'm
not sure how I can make the widgets resize "nicely". I've tried using
refreshCDKScreen() and others, but I can't get it.

I'm sure this is something that could be modified in CDK for the
widgets to resize nicely, but how can I do this in my own program
without modifying CDK? Any ideas?

Thanks for your time.


--Marc



reply via email to

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