Canul Podkopayeva wrote:

>  * I get this code to build but it core dumps and gdb tells me that it
> sigvfault at waddch.

Simple standard C bug. Arrays start at 0, not 1. use win[0]...win[5] and
it should work.

The reason why it doesn't segfault in wattrset is that you have
misspelled the number of the last window (or actually got it right.. all
other window numbers are off by one)

And do not use overlapping windows in curses. Many implementations have
a lot of problem handling them, and overlapping windows in curses is by
no way obvious as there is no depth relationship between them.

Curses windows should only be used when you want to divide the screen
into separate non-overlapping rectangles, like a output region and a
input region.

If you want overlapping regions, then use (n)curses panels instead.
panels adds depth notion to curses windows, defining which window that
are ontop of another.

---
Henrik Nordstr�m

Reply via email to