ncurses tests

OUTWATER vac4050 at
Thu Jun 1 23:06:25 UTC 2000

Eric - Thanks for the info!

I have been using the examples directory, though, and I'm still running into 
problems.  I tried the changes suggested in you message, but still no output.

I set up a basic test which also had networking running and I was able to 
capture the ncurses log output vi ftp.  I based my Init on the Init you placed 
in the examples/ncurses directory.

Here it is:

rtems_task Init(
  rtems_task_argument argument
  rtems_status_code status;

  rtems_bsdnet_initialize_network ();
  status = Untar_FromMemory((unsigned char *)(&_binary_tarfile_start),

  putc('2', stdout);
  putc('\n', stdout);

  putenv ("TERM=xterm");
/* putenv ("NCURSES_TRACE=20"); */
  printw("A Test\n");


for (;;){}

  status = rtems_task_delete( RTEMS_SELF );

When run, I get

But nothing in between. Seems like console I/O is working, just not for ncurses.

I've attached the ncurses log if you're interested...

BTW, I'm using kermit on an HP workstation as my emulator (kermit is run in an 
xterm).  I wonder if taht's the problem...


> One reason for sure that you'll not see any output from the tests linked
> against dummy.rel is that there's no TERM environment variable.  Also,
> the tests provide a main function which conflicts with the RTEMS main
> function.
> The build procedure for the ncurses package was not intended to create
> working tests.  Only the programs in the examples directory should be
> expected to work.
> When I compiled the tests with -Dmain=rtems_main and used the following
> Init routine I was able to run the curses tests I tried.
> void
> Init (rtems_task_argument ignored)
> {
>         static char *argv[] = {
>                 "test",
>                 NULL
>         };
>         putenv ("TERM=xterm");
>         rtems_main (1, argv);
> }
> -- 
> Eric Norum                                 eric at
> Canadian Light Source                      Phone: (306) 966-6308
> University of Saskatchewan                 FAX:   (306) 966-6058
> Saskatoon, Canada.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trace
Type: application/octet-stream
Size: 9095 bytes
Desc: trace
URL: <>

More information about the users mailing list