All Bundles

Console

Provides standard I/O operations

Operations

Error

Writes an error value

function : Error(b:Bool) ~ ConsoleIO
Parameters
NameTypeDescription
bBoolvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : Error(b:Byte) ~ ConsoleIO
Parameters
NameTypeDescription
bBytevalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : Error(c:Char) ~ ConsoleIO
Parameters
NameTypeDescription
cCharvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : Error(i:Int) ~ ConsoleIO
Parameters
NameTypeDescription
iIntvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : Error(f:Float) ~ ConsoleIO
Parameters
NameTypeDescription
fFloatvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : Error(cc:Char[]) ~ ConsoleIO
Parameters
NameTypeDescription
ccChar[]value

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : Error(s:System.String) ~ ConsoleIO
Parameters
NameTypeDescription
sStringvalue

Return
TypeDescription
ConsoleIOI/O console instance

ErrorLine

Writes an error value

function : ErrorLine(b:Bool) ~ ConsoleIO
Parameters
NameTypeDescription
bBoolvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : ErrorLine(b:Byte) ~ ConsoleIO
Parameters
NameTypeDescription
bBytevalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : ErrorLine(c:Char) ~ ConsoleIO
Parameters
NameTypeDescription
cCharvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : ErrorLine(i:Int) ~ ConsoleIO
Parameters
NameTypeDescription
iIntvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : ErrorLine(f:Float) ~ ConsoleIO
Parameters
NameTypeDescription
fFloatvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : ErrorLine(cc:Char[]) ~ ConsoleIO
Parameters
NameTypeDescription
ccChar[]value

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error value

function : ErrorLine(s:System.String) ~ ConsoleIO
Parameters
NameTypeDescription
sStringvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes an error character return

function : ErrorLine() ~ ConsoleIO
Return
TypeDescription
ConsoleIOI/O console instance

Flush

Flushes the STDOUT buffer

function : Flush() ~ ConsoleIO
Return
TypeDescription
ConsoleIOI/O console instance

FlushError

Flushes the STDERR buffer

function : FlushError() ~ ConsoleIO
Return
TypeDescription
ConsoleIOI/O console instance

Print

Writes a value

function : Print(b:Bool) ~ ConsoleIO
Parameters
NameTypeDescription
bBoolvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : Print(b:Byte) ~ ConsoleIO
Parameters
NameTypeDescription
bBytevalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : Print(c:Char) ~ ConsoleIO
Parameters
NameTypeDescription
cCharvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : Print(i:Int) ~ ConsoleIO
Parameters
NameTypeDescription
iIntvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : Print(f:Float) ~ ConsoleIO
Parameters
NameTypeDescription
fFloatvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : Print(cc:Char[]) ~ ConsoleIO
Parameters
NameTypeDescription
ccChar[]value

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : Print(s:System.String) ~ ConsoleIO
Parameters
NameTypeDescription
sStringvalue

Return
TypeDescription
ConsoleIOI/O console instance

PrintLine

Writes a value

function : PrintLine(b:Bool) ~ ConsoleIO
Parameters
NameTypeDescription
bBoolvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : PrintLine(b:Byte) ~ ConsoleIO
Parameters
NameTypeDescription
bBytevalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : PrintLine(c:Char) ~ ConsoleIO
Parameters
NameTypeDescription
cCharvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : PrintLine(i:Int) ~ ConsoleIO
Parameters
NameTypeDescription
iIntvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : PrintLine(f:Float) ~ ConsoleIO
Parameters
NameTypeDescription
fFloatvalue

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : PrintLine(cc:Char[]) ~ ConsoleIO
Parameters
NameTypeDescription
ccChar[]value

Return
TypeDescription
ConsoleIOI/O console instance

Writes a value

function : PrintLine(s:System.String) ~ ConsoleIO
Parameters
NameTypeDescription
sStringvalue

Return
TypeDescription
ConsoleIOI/O console instance

Prints a character return

function : PrintLine() ~ ConsoleIO
Return
TypeDescription
ConsoleIOI/O console instance

ReadBuffer

Reads bytes from STDIN

function : ReadBuffer(offset:Int, num:Int, buffer:Byte[]) ~ Int
Parameters
NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to read
bufferByte[]input buffer

Return
TypeDescription
Intnumber of byte read

Read characters from STDIN

function : ReadBuffer(offset:Int, num:Int, buffer:Char[]) ~ Int
Parameters
NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to read
bufferChar[]input buffer

Return
TypeDescription
Intnumber of byte read

ReadLine

Reads a string from STDIN

function : ReadLine() ~ System.String
Return
TypeDescription
Stringstring read

SetFill

Sets the output fill

function : SetFill(fill:Char) ~ ConsoleIO
Parameters
NameTypeDescription
fillCharoutput fill

SetFloatFormat

Set floating point display format.

function : SetFloatFormat(format:Number->Format) ~ ConsoleIO
Parameters
NameTypeDescription
formatNumber->Formatinteger format

SetFloatPrecision

Set floating point display precision.

function : SetFloatPrecision(precision:Int) ~ ConsoleIO
Parameters
NameTypeDescription
precisionIntdecimal precision

SetIntFormat

Set integer display format.

function : SetIntFormat(format:Number->Format) ~ ConsoleIO
Parameters
NameTypeDescription
formatNumber->Formatinteger format

SetWidth

Sets the output width

function : SetWidth(width:Int) ~ ConsoleIO
Parameters
NameTypeDescription
widthIntoutput width

WriteBuffer

Write a byte buffer to STDOUT

function : WriteBuffer(buffer:Byte[]) ~ Int
Parameters
NameTypeDescription
bufferByte[]input buffer

Return
TypeDescription
Inttrue if successful, false otherwise

Write a byte buffer to STDOUT

function : WriteBuffer(offset:Int, num:Int, buffer:Byte[]) ~ Int
Parameters
NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferByte[]input buffer

Return
TypeDescription
Intnumber of byte written

Write a character buffer to STDOUT

function : WriteBuffer(offset:Int, num:Int, buffer:Char[]) ~ Int
Parameters
NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferChar[]input buffer

Return
TypeDescription
Intnumber of byte written

WriteErrorBuffer

Write a byte buffer to STDERR

function : WriteErrorBuffer(offset:Int, num:Int, buffer:Byte[]) ~ Bool
Parameters
NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferByte[]input buffer

Return
TypeDescription
Booltrue if successful, false otherwise

Write a character buffer to STDERR

function : WriteErrorBuffer(offset:Int, num:Int, buffer:Char[]) ~ Bool
Parameters
NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferChar[]input buffer

Return
TypeDescription
Booltrue if successful, false otherwise

WriteString

Writes a character string

function : WriteString(str:System.String) ~ Int
Parameters
NameTypeDescription
strStringstring to be written

Write a byte character to STDOUT

function : WriteString(buffer:Char[]) ~ Int
Parameters
NameTypeDescription
bufferChar[]input buffer

Return
TypeDescription
Inttrue if successful, false otherwise