lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Could that be a buffering issue? On Linux, at least, stdout is buffered, but stderr is not.

Try io.stderr:write, is it also giving no output?

-ak


3.4.2005 kello 23:58, Wolfgang Bujatti kirjoitti:

 Thanks,

Neither io.write nor io.stdout:write is working on SciTE at all (none
output),
but both are working in the DOS-Window, which I have overseen.

Cheers,
blackrat


-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br]On Behalf Of Daniel Quintela
Sent: Sunday, April 03, 2005 10:22 PM
To: Lua list
Subject: Re: print: subpress CR+LF?


Wolfgang Bujatti escribió:

Is it possible to subpress the CR+LF at the end of each print statement on
Windows?

print"Hello "
print"World"
print"\n"

Output:
Hello
World




Try io.write (or io.stdout:write) instead of print:

io.write"Hello "
io.write"World"
io.write"\n"

--dq