Hi, sorry for the late reply, I'm busy these days.
I have made a new fork of your repo: asmwarrior/TerminalWx: WxWidgets Terminal Widget (https://github.com/asmwarrior/TerminalWx), and try to build this library with the C::B and msys2.
I see some link errors
[100.0%] g++.exe -o bin\Debug\TestApp.exe obj\Debug\src\GTerm\actions.o obj\Debug\src\GTerm\gterm.o obj\Debug\src\GTerm\keytrans.o obj\Debug\src\GTerm\states.o obj\Debug\src\GTerm\utils.o obj\Debug\src\GTerm\vt52_states.o obj\Debug\src\taTelnet\wxterm.o obj\Debug\src\terminalinputevent.o obj\Debug\src\terminalwx.o obj\Debug\TestApp.o obj\Debug\TestMain.o -LF:/code/msys2-64/mingw64/lib -pipe -lwx_mswu_xrc-3.2 -lwx_mswu_webview-3.2 -lwx_mswu_html-3.2 -lwx_mswu_qa-3.2 -lwx_mswu_adv-3.2 -lwx_mswu_core-3.2 -lwx_baseu_xml-3.2 -lwx_baseu_net-3.2 -lwx_baseu-3.2 -mwindows
F:/code/msys2-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: obj\Debug\src\terminalwx.o: in function `__static_initialization_and_destruction_0':
F:\code\TerminalWx/src/terminalwx.cpp:76:(.text+0x518): undefined reference to `__imp_chEVT_TERMINAL_INPUT'
F:/code/msys2-64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: F:\code\TerminalWx/src/terminalwx.cpp:78:(.text+0x52a): undefined reference to `__imp_chEVT_TERMINAL_INPUT'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 8 second(s))
3 error(s), 101 warning(s) (0 minute(s), 8 second(s))
see the attachment txt log file for more details.
EDIT:
Edit : Following link describes a psuedoterminal i think that can be used for windows https://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/
I'm not sure how difficult the windows conpty API is. I haven't tried it yet.