Page 1 of 1
Setting console title remove line ends
Posted: Sat Aug 20, 2016 1:16 am
by Croutonix
Code: Select all
os.execute("title Hello World")
print("Line 1")
print("Line 2")
os.execute("pause")
Prints
But if no title is set:
Code: Select all
print("Line 1")
print("Line 2")
os.execute("pause")
It prints
Setting the console title removes line ends or removes something at least.
Any idea why? Any other way to set console title?
This might be a Lua isssue not a love one
Tried on lua console and it works the right way. This is a love issue.
Console is enabled in .love file
Download .love file
Sorry for all these not game related issues but you're my only hope!
Re: Setting console title remove line ends
Posted: Sat Aug 20, 2016 2:52 am
by Positive07
Yeah, it's a
reported issue in the issue tracker, no idea why it was marked as invalid, it's a completely valid one
Maybe you should go there and comment about it
Re: Setting console title remove line ends
Posted: Sat Aug 20, 2016 11:16 am
by Croutonix
Also note that if I set title and open my program with a batch file
Code: Select all
@echo off
title Hello World!
love.exe src <program.exe>
Everything displays correctly.
Re: Setting console title remove line ends
Posted: Sat Aug 20, 2016 5:30 pm
by slime
I did some tests:
https://bitbucket.org/rude/love/issues/ ... t-30001224
tl;dr: probably Microsoft's fault. There's not much I can actually do to solve it in LOVE's code I think, although you'll be able to use lovec.exe when 0.10.2 comes out if you want to output to a console, and lovec.exe doesn't have that issue as far as I can tell.
Re: Setting console title remove line ends
Posted: Sat Aug 20, 2016 8:41 pm
by Croutonix
Is it coming soon or only in a few months?