Test with a Simple ncurses Program
As mentioned earlier, try compiling and running a simple C program that uses ncurses to verify that your setup is working correctly:
c
Copy code
include <ncurses.h></ncurses.h>
int main() {
initscr();
printw("Hello World!");
refresh();
getch();
endwin();
return 0;
}
Compile it with:
bash
Copy code
gcc -o test_ncurses test_ncurses.c -lncurses
And run it:
bash
Copy code
./test_ncurses
If this works but your COBOL program does not, the issue may be specific to how you're calling ncurses functions in COBOL.
Check COBOL Call
Make sure your COBOL code correctly calls the ncurses functions. If you're using CALL statements, ensure that you're using the correct syntax and data types. Here's a minimal example of how it might look:
As mentioned earlier, try compiling and running a simple C program that uses ncurses to verify that your setup is working correctly:
c
Copy code
include <ncurses.h></ncurses.h>
int main() {
initscr();
printw("Hello World!");
refresh();
getch();
endwin();
return 0;
}
Compile it with:
bash
Copy code
gcc -o test_ncurses test_ncurses.c -lncurses
And run it:
bash
Copy code
./test_ncurses
If this works but your COBOL program does not, the issue may be specific to how you're calling ncurses functions in COBOL.
Make sure your COBOL code correctly calls the ncurses functions. If you're using CALL statements, ensure that you're using the correct syntax and data types. Here's a minimal example of how it might look:
cobol
Copy code
IDENTIFICATION DIVISION.
PROGRAM-ID. Screen1.
Summary
Hi all-
Its jim. The c hello test works so can i have a little help with the using dir thanks
Sent with Proton Mail secure email.