print

open fun print(arg: String): SourcePrinter(source)

Append the source string passed as argument to the buffer. If this is being appended at the beginning of a line, performs indentation first.

The source line to be printed should not contain newline/carriage-return characters; use println to automatically append a newline at the end of the source string. If the source line passed as argument contains newline/carriage-return characters would impredictably affect a correct computation of the current getCursor position.

Return

this instance, for nesting calls to method as fluent interface

Parameters

arg

source line to be printed (should not contain newline/carriage-return characters)

See also