News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Looking for Console command window

Started by rfdes, July 08, 2020, 02:11:10 AM

Previous topic - Next topic

rfdes


I'm a casual user of Code Blocks for writing C programs but would like to have the ability of sending direct commands from a 'Dos Box Terminal' window docked within the C:B app.  I've yet been able to determine if this is directly possible with C:B or if there is a plugin available for doing this.  I'm using C:B within Win 10.  Would someone please inform me whether this is doable ?

Thanks
Jim

Pecan

#1
I once did this long ago.
It was not possible to dock the windows console within a c/cpp app, but it was possible to start a hidden console to scrape and insert to the console buffer; then presenting that info to a text window enbedded in the c/cpp app.

It was not easy or entirely stable. I wouldn't try to do it again.

It would be more dependable to allow the user to read and write to a text window, execute the user commands via something like wxExecute("cmd /c whatever") and pipe the stdin/stdout to the text window.