Xref: utzoo comp.unix.xenix:4155 comp.unix.questions:10657 comp.unix.wizards:13422 Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!uwvax!astroatc!nicmad!madnix!ray From: ray@madnix.UUCP (Ray P. Hill) Newsgroups: comp.unix.xenix,comp.unix.questions,comp.unix.wizards Subject: Curses Problem Keywords: curses newwin problem Message-ID: <263@madnix.UUCP> Date: 13 Dec 88 05:15:41 GMT Organization: MADNIX, operated by: ARP Software Madison WI Lines: 55 Curses Experts: Why does the following curses code sample produce a different output on UNIX systems? Some machines produce and map both windows while others map both windows to the same location on the screen. Our VAX, Sun3, 386i, and 286 XENIX machines work correctly (2 windows), while 386 XENIX and Pyramid (AT&T universe) work incorrectly (1 window). |-----| |-----| | | | | | |-----| = Working | | = Broken | | | | | |--| | |-----| | | |-----| Can someone show me how to make this code sample work? Thanks. Ray Hill ray@madnix ---- Cut Here ---- echo x - test.c cat > "test.c" << '//E*O*F test.c//' /* COMPILE WITH: * cc -O -o test test.c -lcurses -ltermcap */ #include main() { WINDOW *win; initscr(); win = newwin(10, 10, 0, 0); box(win, '|', '-'); overwrite(win, stdscr); win = newwin(10, 10, 5, 5); box(win, '|', '-'); overwrite(win, stdscr); move(16, 0); refresh(); endwin(); } //E*O*F test.c// exit 0 -- UUCP: {harvard|rutgers|ucbvax}!uwvax!astroatc!nicmad!madnix!ray {decvax|att}! ! {uunet|ncoast}!marque!