I don't get your idea, how macOS can be 'bad' here and Windows can be ok here? Code is crossplatform! Show the failing small project.
i just build your old version CudaText 1.95.x , it work!!
but when the App close in the FormDestroy of FormMain, the freeandnil(FconsoleQueue) report me access violation.
and follow the debugger, it show me Fdata on TDeque.ClearData is Nil, and Low(Fdata) to High(Fdata) work, so Finalize(Fdata
) got access violation.
my FPC version is 3.2.2 come from FPCDeluxe project.