Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site microsoft.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!harpo!eagle!mhuxl!ihnp4!alberta!ubc-vision!uw-beaver!microsoft!davep From: davep@microsoft.UUCP Newsgroups: net.unix Subject: Curses question Message-ID: <8683@microsoft.UUCP> Date: Sat, 21-Jan-84 13:42:34 EST Article-I.D.: microsof.8683 Posted: Sat Jan 21 13:42:34 1984 Date-Received: Fri, 27-Jan-84 05:14:16 EST Organization: Microsoft Corporation Lines: 38 The following program causes the curses package to core dump in wrefresh(). (The program creates a 7 line by 40 col box starting at 20,20) #include main() { WINDOW *w; initscr(); w = newwin(7, 41, 20, 20); box(w, '|', '-'); wrefresh(w); endwin(); } The problem seems to be that the window I've defined exceeds the bounds of my 24x80 screen. When makech() (in wrefresh()) tries to update the 25th line of the screen I get a core dump. My interpretation of the documentation for wrefresh is that if the window doesn't fit in the actual screen, it will only update the parts that fit on the screen and return an error. However I don't see this happening in makech(). Now my question. Is this a bug, or my misunderstanding of the documentation? If I misunderstood the documentation, does that mean I shouldn't create windows that are larger than the actual screen size? Thanx. David Perlin uw-beaver!microsoft!davep decvax!microsoft!davep