Just many random programs in C and C++.
Make sure to have PDcurses or Ncursesw installed.
Compile PDcurses with WIDE and UTF8 off.
g++ -Wall -static -O2 -Ipath\to\PDCurses\ -Ipath\to\PDCurses\platformSpecificFolder prog.cpp -o .\prog.exe -s path\to\PDCurses\platformSpecificFolder\pdcurses.a
Replace the path to PDCurses with actual path and "platformSpecificFolder" with your actual system, then replace prog.cpp with the program you want to compile, after that change prog.exe with whatever your binary should be. Finally, run the command.
Be sure to change
#include <curses>
to
#include <ncursesw/curses.h>
when compiling with Ncursesw.