printing to the console without newline? #519
Replies: 5 comments
-
Posted at 2016-01-04 by @allObjects With console.log() had expected that... but with print() there usually goes also a println()... like write() and writeln()... but I'm obviously mistaken. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-04 by @gfwilliams
If you know where the console is (eg. Serial1) you can just do |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-04 by tve So there's no way to print long lines incrementally, one has to build the string in memory and then print it at once? Sigh. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-05 by DrAzzy I can't say I'm fond of a .print() method appending line ending. That's what .println() methods should be for. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-05 by @gfwilliams Well, To be honest it looks like a JS thing - it's not just Espruino: http://stackoverflow.com/questions/6157497/node-js-printing-to-console-without-a-trailing-newline If you want to print a bit of a line at once, do I guess to make it more compatible I could make |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-01-04 by tve
Dumb question: is there a way to print a string to the console without newline? Both console.log() and print() add a newline.
Beta Was this translation helpful? Give feedback.
All reactions