bug-ncurses
[Top][All Lists]
Advanced

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

Re: Window alignment issues


From: Daniel Corbe
Subject: Re: Window alignment issues
Date: Tue, 03 Dec 2013 09:10:15 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix)

Thomas Dickey <address@hidden> writes:

> 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 newline.
> 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.

Thank you!

Chalk that up to lack of critical thinking on my part.  It just simply
hadn't occurred to me that the newline was mucking things up.  

-Daniel



reply via email to

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