GeoNomad wrote:Is there some other way to read and write stdin and stdout?
io.read and write?
I am looking for the way to print without the \r\n at the end...
scargill wrote:Thanks Zeroday.
I wonder if I can ask you to consider this seriously. The Lua interpreter is getting to the point where it is starting to look like a very good tool - but to use this with another processor, we need to be able to fire commands at the board and get results. Right now it is very hard to do this because of the echoed characters. I suggest possibly one way would be a paire of commands or control characters to stop the echo. My friend who is also following your project is also concerned about this. There is not enough memory to do larger projects and so in some cases it will be necessary to use the board as simply a peripheral.
Keep up the great work.
Petezeroday wrote:Yes, when Lua read from serial, it echo chars back. acts like readline.
0~9, Aa~Zz, echo back exactly the same char.
'\b' or 'del', echo '\b', ' ', '\b' to delete the previous char show in terminal.
'\n' or '\r' will be the end of line.
Can't turn this off right now.
Thank you,
yes it will be added may be in the api uart.setup. next todo thing.
scargill wrote:I might be wrong but I don't think io.read() is implemented as such... certainly does nothing when you try it as I just did. There's a lot not implemented - I'm fairly sure that floating point numbers aren't implemented either.GeoNomad wrote:Is there some other way to read and write stdin and stdout?
io.read and write?
I am looking for the way to print without the \r\n at the end...
both float and io module are not implemented, to save ram.
scargill wrote:I might be wrong but I don't think io.read() is implemented as such... certainly does nothing when you try it as I just did. There's a lot not implemented - I'm fairly sure that floating point numbers aren't implemented either.GeoNomad wrote:Is there some other way to read and write stdin and stdout?
io.read and write?
I am looking for the way to print without the \r\n at the end...
both float and io module are not implemented, to save ram.