I want to build Windows' cmd wrapper because I want larger view and tabbed interface. I saw some projects on the net like eConsole (Delphi) and Console2 (inspired by eConsole, but written in C++), both can handle how cmd executes another program (and both uses Windows API's CreateProcess). That is, they can suppress console window created by that another program. However in fpc (or Lazarus) case, even if I set ShowWindow to swoNone and one of Options is poNoConsole, program still opens console window.
If it's not really clear what I mean, please see attached screenshot. As you can see, the output of fpc in Console2 (left) is written on the memo, while my app (right) opens a console window.