home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!mcsun!fuug!news.funet.fi!hydra!klaava!mvarila
- From: mvarila@klaava.Helsinki.FI (Mikael J Varila)
- Subject: Bug in wsetscrreg or scroll (aix 3.2.0) ?
- Message-ID: <1993Jan3.133553.5890@klaava.Helsinki.FI>
- Organization: University of Helsinki
- X-Newsreader: TIN [version 1.1 PL6]
- Date: Sun, 3 Jan 1993 13:35:53 GMT
- Lines: 65
-
-
- Hi,
- We have run into a small (?) problem with our c-programs
- compiled in RS6000 AIX 3.2.0 conserning scrolling.
-
- If anyone out there can spot the error in the following
- c-program ( or verify that it crashes ), I would be very
- grateful.
-
- ========================================================
- #include <stdio.h>
- #include <curses.h>
-
- main()
- {
-
- initscr();
- cbreak();
- noecho();
- scrollok( stdscr, TRUE );
-
- wmove( stdscr, 23, 0 );
- waddstr( stdscr, "1" );
- wmove( stdscr, 22, 0 );
- waddstr( stdscr, "2" );
-
- wrefresh( stdscr );
-
- wgetch( stdscr );
-
- wsetscrreg( stdscr, 22, 24 );
- scroll( stdscr );
-
- wmove( stdscr, 23, 0 );
- waddstr( stdscr, "3" );
- wmove( stdscr, 24, 0 );
- waddstr( stdscr, "4" );
-
- wrefresh( stdscr );
-
- wgetch( stdscr );
-
- nocbreak();
- echo();
- scrollok( stdscr, FALSE );
- endwin();
-
- }
-
- ========================================================
-
- When I run the code above, I get the error
- "Segmentation fault (core dumped)"
- - but ONLY if the window where I run it is 24*80
- characters.
-
- The compiler we use seems to be of version 1.2.0.8.
-
- One more thing: the program does not crash on our
- ICL Mikko DRS6000 machine runnig SysVr4.
-
- Thanks in advance,
-
- Mikael Varila
-
-