*BSD News Article 39712


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!pipex!uunet!noc.near.net!eisner!burns
From: burns@eisner.decus.org (Scott Burns)
Newsgroups: comp.os.386bsd.bugs
Subject: SCDOWN
Message-ID: <1994Dec18.224914.8079@eisner>
Date: 18 Dec 94 22:49:14 -0500
Organization: DECUServe
Lines: 74

We are developing an app. to run on OS/2, Unix, VMS etc. using curses. It worked
fine on NetBSD V0.9 a few month ago but on GenericAha of Oct 23 V1.0 it dies
in subwin. Here is a sample. Sorry I didn't use send-pr I have no machine on the
net.

Was the curses library changed for V1.0 ? Anyone had any problems with V1.0
and Curses ? I am using the install disks right out of the box with no
kernel re-compiles.

scott burns
burns@eisner.decus.org

P.S. - Hardware - 466DX2, 16MB, AHA 1542CF, 2 SCSI disks etc.

P.P.S. - I am getting those messages others reported under heavy disk access
about:

/netbsd: aha0: DMA beyond end of ISA

For example with only 1 scsi drive for netbsd logging into root and
fsck'ing causes the message.

I missed any note about how to troubleshoot this one.

==========================================================================
#include <stdio.h>
#include <curses.h>
main()
{
	WINDOW *MainWin;
	WINDOW *SubWin;
	int Main_Lines; /* Number of lines in the new window */
 	int Main_Cols; /* Number of columns in the new window */
	int Main_X; /* Rows down to position at */
	int Main_Y; /* Columns across to position at */
	Main_Lines = 14;
	Main_Cols = 60;
	Main_X = 5;
	Main_Y = 5;
	initscr();
	MainWin = newwin(	Main_Lines,
				Main_Cols,
				Main_Y,
				Main_X );
	/* Box the window so we can see it's outside */
	box( MainWin, 56, 56 );
	wmove( MainWin, 10, 10 );
	wprintw( MainWin, "This is at position 10, 10 in the MainWin window" );
	wrefresh( MainWin );
	wgetch( MainWin );
	/*
	* This window will be created so that it falls inside the above
	* window
	* ie.	- it will be 2 lines less in width and 2 lines less in height
	*	- It will be position 1 line and 1 column farther over
	* It dies calling this function.
	*/
	SubWin = subwin(	MainWin,
				Main_Lines - 2,
				Main_Cols - 2,
				Main_Y + 1,
 				Main_X + 1 );
	/* Box the subwin so we can see it. */
	box( SubWin, 57,57);
	wmove( SubWin, 2, 2 );
	wprintw( SubWin, "This is at position 2, 2 in the SubWin window" );
	wrefresh( SubWin );
	wgetch( SubWin );
	delwin( SubWin );
	delwin( MainWin );
	endwin();
	exit( 0 );
}