What's the bare minimum #C89 needed to connect to the console in any OS and, in Windows (inc. XP), Linux & MacOS, enable raw mode? Asking for a friend.
Maybe there's a bare-bones framework out there for "give my app a terminal window and make the OS go away" that doesn't involve installing gigabytes of compiler suites and libraries :|
I'm looking at this tutorial to build a minimal text-editor in C: https://viewsourcecode.org/snaptoken/kilo/index.html I don't need the text-editor, I don't want to use C for that, but it does provide the bare minimum to get a raw-mode terminal and I could build a VM / Forth using that and then forget about the OS and work in script from there upwards.
@Kroc I think projects like Forth and uxn assume that hardware capable of running a typical but minimal OS and a C compiler won't be available for whatever reasons. Embedded computing adjacent. So, you can't complain about their lack of memory allocation etc.
Anything else you want probably can be done on Erlang, for which they nowadays seem to have a new implementation for 32-bit microcontrollers (atomvm).