Setting console title remove line ends

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
Croutonix
Prole
Posts: 34
Joined: Fri Aug 12, 2016 12:49 pm

Setting console title remove line ends

Post by Croutonix »

Code: Select all

os.execute("title Hello World")
print("Line 1")
print("Line 2")
os.execute("pause")
Prints
Image

But if no title is set:

Code: Select all

print("Line 1")
print("Line 2")
os.execute("pause")
It prints
Image

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!
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: Setting console title remove line ends

Post 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
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
Croutonix
Prole
Posts: 34
Joined: Fri Aug 12, 2016 12:49 pm

Re: Setting console title remove line ends

Post 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.
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Setting console title remove line ends

Post 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.
Croutonix
Prole
Posts: 34
Joined: Fri Aug 12, 2016 12:49 pm

Re: Setting console title remove line ends

Post by Croutonix »

Is it coming soon or only in a few months?
Post Reply

Who is online

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