Output.newline

Append a newline and flush the console buffer. If the output is redirected, flushing does not occur automatically.

class Output
@property final
newline
()

Return Value

Type: Output

Returns a chaining reference if content was written. Throws an IOException indicating Eof or Eob if not.

Remarks: Emit a newline into the buffer, and autoflush the current buffer content for an interactive console. Redirected consoles do not flush automatically on a newline.

Meta