Curses Problem

Duane L. Rezac drezac at dcscg1.UUCP
Fri Nov 10 02:24:57 AEST 1989


HELP!!!


I am trying to use the curses package in a c program, and I can not determine
what my problem is. When I compile the program and run it, nothing happens 
(i.e. no screen activity), but if I run it using dbx, the curses routines 
work!. Any Ideas on what's wrong?  (We do not have any curses manuals, only
a very weak man page. )

I am compiling with : cc -o test test.c -g -lcurses -ltermcap
our system is runing UTX 2.0 (4.3 BSD)




#include <stdio.h>
#include <curses.h>

main()
{
  WINDOW *win;
  initscr(); 
  win=newwin(10,10,10,10);
  box(win,'+','+');
  wprintw(win,"this is a test");
  wrefresh(win);
  endwin();
  exit(0);
  };

Thanks for any help


-- 
+-----------------------+---------------------------------------------------+
| Duane L. Rezac |These views are my own, and NOT representitive of my place|
| dsacg1!dcscg1!drezac    drezac at dcscg1.dcsc.dla.mil      of Employment.    |
+-----------------------+---------------------------------------------------+



More information about the Comp.lang.c mailing list