Registered Member
|
I'm using KDevelop for scripting Python and Love2d (Lua) and everything I want to print in my scripts while the script is running in printed only when the application finish. Is it possible to enable real time output?
Thanks! |
Global Moderator
|
Hi,
you can call sys.stdout.flush() to flush output and make it immediately visible. To be honest though, I'm not sure what component actually does the buffering which makes this necessary in kdevelop, but not on console ... Best, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
Thanks for the hint. This is also working in lua with io.flush().
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]