Sublime text - is it possible to have live console output?
Posted: Thu Jun 13, 2013 11:39 am
Here's a quick question for any Sublime Text 2 users
For my Löve projects I'm using this build script: (this is for mac of course, you can check this page on the wiki for the corresponding windows script)
It works great, but I noticed that when I use print() in my code I don't see the output until I've closed the löve.app window.
So for example, when I run the simple code:
Which displays the Lua version in the Löve.app window and outputs the following in the sublime text console:
but not until I actually closed the window (which as you can see there took me 2.9 seconds)
When I run the program manually from the terminal or when using my script file the terminal shows the print output live as it happens:
Is there a way to make the output display live in sublime text 2 as well?
For my Löve projects I'm using this build script:
Code: Select all
{
"selector": "source.lua",
"cmd": ["/Applications/love.app/Contents/MacOS/love", "$filepath"]
}
It works great, but I noticed that when I use print() in my code I don't see the output until I've closed the löve.app window.
So for example, when I run the simple code:
Code: Select all
function love.load()
love.graphics.setColor(255,255,255,255)
love.graphics.print(_VERSION, 100, 100)
for var = 0, 10, 1 do
print("test: " .. var)
end
end
Code: Select all
test: 0
test: 1
test: 2
test: 3
test: 4
test: 5
test: 6
test: 7
test: 8
test: 9
test: 10
[Finished in 2.9s]
When I run the program manually from the terminal or when using my script file the terminal shows the print output live as it happens:
Is there a way to make the output display live in sublime text 2 as well?