AllocConsole and freepascal
Sunday, 27. January 2008, 21:02:05
While you can just make something like this in Delphi:
AllocConsole();
writeln('stuff');
you have to do a bit more magic in freepascal:
AllocConsole(); System.IsConsole:=true; SysInitStdIO();
after this you are free to go with all your writeln()s and readln()s.
After spending literally hours throwing pointers around me someone named christian_u in the channel #german-lazarus-forum on freenode finally ended my pain
IRC still has it's benefits