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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
bitinn
Prole
Posts: 8
Joined: Sun Apr 10, 2016 9:44 am

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

Post 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)
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

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

Post by Ulydev »

I used to get this issue on OS X. This solved it.

Code: Select all

io.stdout:setvbuf'no' 
bitinn
Prole
Posts: 8
Joined: Sun Apr 10, 2016 9:44 am

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

Post 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
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests