Page 1 of 1

Does anyone notice when using LOVE with Git Bash on windows, print() doesn't get flush to console?

Posted: Wed Apr 27, 2016 7:48 am
by bitinn
I notice it seems to buffer the print, and only stdout in batch until it reaches certain number of lines, or until you quit the game.

Something as described here: http://superuser.com/questions/1029490/ ... yed-output

What could be the cause for that? On OS X I don't get this issue.

(I use git bash mostly because I use git to do versioning and their text selection is much better than cmd)

Re: Does anyone notice when using LOVE with Git Bash on windows, print() doesn't get flush to console?

Posted: Wed Apr 27, 2016 4:36 pm
by Ulydev
I used to get this issue on OS X. This solved it.

Code: Select all

io.stdout:setvbuf'no' 

Re: Does anyone notice when using LOVE with Git Bash on windows, print() doesn't get flush to console?

Posted: Fri Apr 29, 2016 6:35 am
by bitinn
Thx a lot, I will try it out, my guess is it will resolve my issue...

For reference:
http://stackoverflow.com/questions/1854 ... red-in-lua