c - Simple curses.h program, nothing is showed in terminal -
i have use curses.h library school project. programming in netbeans. trying create simple program on mac, seems good. code compiled, new terminal window opened, nothing showed, press [ enter ] close terminal. have included curses.h library, set -lcurses in debug options (i have tried main.c -lcurses too). there screenshot. screen should set else? can me please?
edit:
its code:
#include <stdio.h> #include <stdlib.h> #include <curses.h> int main(int argc, char** argv) { initscr(); printw("test"); refresh(); endwin(); return (exit_success); }
try add getch()
wait user input between refresh()
, endwin()
. program ends fast.
Comments
Post a Comment