bug-ncurses
[Top][All Lists]
Advanced

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

Window alignment issues


From: Daniel Corbe
Subject: Window alignment issues
Date: Mon, 02 Dec 2013 15:18:25 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix)

I hope this is the right place to ask general questions as there only
seems to be this one mailing list associated with the project.

Given the attached example program, I'm having a rather difficult time
getting the 3 windows to align properly.  The windows are being painted
starting around line 51:

        text = newwin(row - 2, col, 0, 0);

Given the very simple math involved, I'd expect that to be the right way
to paint the window; however, it leaves an extra row of blank space just
above the status bar.  

So I change that to:

        text = newwin(row - 1, col, 0, 0);

And I also make sure it's refreshing in the correct order: text, then
status and finally input.

Now the text dump reaches all the way to the bottom (or the top of the
status bar) but when it gets there the window containing the status bar
goes *poof*.

So, I'm obviously missing something.   Do ncurses windows contain empty
boreders by default?  If so, is there a way to disable them?

Here's hoping that someone is kind enough to hit me with a cluebat.

-Daniel

Attachment: test.c
Description: Binary data


reply via email to

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