Difference between revisions of "Write"
From ComputerCraft Wiki
Smiley43210 (Talk | contribs) (Made it more clear that arg doesn't have to be a string.) |
Bomb Bloke (Talk | contribs) m (Applies word-wrap.) |
||
| Line 5: | Line 5: | ||
|api= | |api= | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| − | |desc=Writes characters to the terminal screen. | + | |desc=Writes characters to the terminal screen. Applies word-wrap, unlike [[Term.write|term.write()]]. |
|examples= | |examples= | ||
{{Example | {{Example | ||
Latest revision as of 13:10, 22 February 2014
| Writes characters to the terminal screen. Applies word-wrap, unlike term.write(). | |
| Syntax | write(Mixed data) |
| Returns | nil |
| Part of | ComputerCraft |
| API | none |
Examples
| Writes Hello World! to the terminal screen. | |
| Code |
write ("Hello ")
write ("World!")
|
| Output | Hello World! (in one line) |
Additional Notes
- Starts writing where the last write stopped as opposed to print() which always prints in a new line.
- When used at the end of a program, the following prompt will be in the same line.