smuehlst / circle-stdlib

Standard C and C++ Library Support for Circle
GNU General Public License v3.0
90 stars 17 forks source link

Custom console for stdio? #18

Closed toptensoftware closed 3 years ago

toptensoftware commented 3 years ago

Is it possible to use circle-stdlib with a custom console?

My circle app, uses OpenGL for screen rendering rather than the default circle screen implementation and will have it's own console implementation. Can I get circle-stdlib to use it instead?

rsta2 commented 3 years ago

For a custom console you have to modify the class CStdlibAppStdio in include/circle_stdlib_app.h. The member mConsole has an additional constructor, which can get pointers to the stdin and stdout devices.