by executing some basic examples in ncurses libreries, I get some problems.
Actually, I don’t understand what I expect (the message is printed), and it’s being debugged, from eclipse I get (in the console area) “Error opening terminal: unknown”.
Executes the code:
#include <unistd.h> #include <stdlib.h> #include <ncurses.h> int main() { initscr(); move(5,15); printw("%s", "Hello world!"); refresh(); endwin(); exit(EXIT_SUCCESS); }
Compiler options, as indicated in the Eclipse console in the Build project command:
make all Building file: ../source/Curses_01.c Invoking: GCC C Compiler gcc -Incurses -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"source/Curses_01.d" -MT"source/Curses_01.d" -o"source/Curses_01.o" "../source/Curses_01.c" Finished building: ../source/Curses_01.c Building target: Curses_01 Invoking: GCC C Linker gcc -o"Curses_01" ./source/Curses_01.o -lcurses Finished building target: Curses_01
Thanks to everyone in advance!
source share