textutils.slowWrite

From ComputerCraft
Jump to: navigation, search

textutils.slowWrite
Function
Syntax
textutils.slowWrite()
Returns nil
API textutils
Source CC:Tweaked (source)

Slowly writes text, character-by-character, at the current cursor position in the current term. Accepts an optional rate parameter, in characters per second (default 20). This function does not automatically move to the next line after writing.

  • ☑Y This function delegates to write, so it has the same behaviour.
  • ☒N This function does not support printing multiple objects. You will have to concatenate them together into a single string.
  • ☒N This function will not insert a newline after printing.
  • ☑Y This function supports writing newlines (e.g. via the \n character).
  • ☑Y This function will wrap the text when it is longer than the screen width.
  • If you would like a trailing newline, consider using textutils.slowPrint instead.
ExampleExampleWith default rate
Slowly writes "Hello, world!" to the current term.
Code
textutils.slowWrite("Hello, world!")
ExampleExampleWith custom rate
Slowly writes "Hello, world!" to the current term, at 5 characters per second.
Code
textutils.slowWrite("Hello, world!", 5)