
> directory /home/data/VBOX/VBOX_DATA/CodeBlocks/keyboard/ The last lines from the debugger window: Debugger name and version: GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2 Process terminated with status 0 (0 minute(s), 0 second(s))Ġ error(s), 0 warning(s) (0 minute(s), 0 second(s)) Output file is bin/Debug/keyboard with size 23.88 KB G++ -Wall -fexceptions -g -I/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D_WXGTK_ -pthread -DCB_VERSION="\\\"Code::Blocks Release 20.7, 19:47:24\\\"" -I/usr/include -c /home/data/VBOX/VBOX_DATA/CodeBlocks/keyboard/main.cpp -o obj/Debug/main.o Build: Debug in keyboard (compiler: GNU GCC Compiler). Clean: Debug in keyboard (compiler: GNU GCC Compiler).

Printw( " Received character '%c' ", c ) Keypad( w, FALSE ) /* FALSE: CSI codes, TRUE: curses codes for keys */ nonl() /* Disable newline/return mapping */ Raw() /* Terminal in raw mode, no buffering */

*/įprintf( stderr, "Error initializing curses library.\n" ) This tells the C libraries to use user's locale settings.

This code sample compiles and runs fine but when I try to debug it, it closes the console window when I execute the line: w = initscr() #include I took a code sample from another stackoverflow page if someone would want to give it a try. I ran into a problem when I tried to debug a c++ console project in Codeblocksĭebugging went fine until I included and I included the library with -lncurses
