[Top][All Lists]

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

Re: Window alignment issues

From: Thomas Dickey
Subject: Re: Window alignment issues
Date: Mon, 02 Dec 2013 18:53:07 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Dec 02, 2013 at 03:18:25PM +0300, Daniel Corbe wrote:
> 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.  

It seems that your program is using scrolling, and is finishing a line with a 
That would leave a blank line at the bottom of a window.
> 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?

no - there are no borders.

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

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