Console
Provides standard I/O operations
Operations
- Error
- ErrorLine
- Flush
- FlushError
- PrintLine
- ReadBuffer
- ReadLine
- SetFill
- SetFloatFormat
- SetFloatPrecision
- SetIntFormat
- SetWidth
- WriteBuffer
- WriteErrorBuffer
- WriteString
Error
Writes an error value
function : Error(b:Bool) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| b | Bool | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Error
Writes an error value
function : Error(b:Byte) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| b | Byte | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Error
Writes an error value
function : Error(c:Char) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| c | Char | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Error
Writes an error value
function : Error(i:Int) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| i | Int | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Error
Writes an error value
function : Error(f:Float) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| f | Float | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Error
Writes an error value
function : Error(cc:Char[]) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| cc | Char | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Error
Writes an error value
function : Error(s:System.String) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| s | String | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ErrorLine
Writes an error value
function : ErrorLine(b:Bool) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| b | Bool | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ErrorLine
Writes an error value
function : ErrorLine(b:Byte) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| b | Byte | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ErrorLine
Writes an error value
function : ErrorLine(c:Char) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| c | Char | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ErrorLine
Writes an error value
function : ErrorLine(i:Int) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| i | Int | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ErrorLine
Writes an error value
function : ErrorLine(f:Float) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| f | Float | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ErrorLine
Writes an error value
function : ErrorLine(cc:Char[]) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| cc | Char | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ErrorLine
Writes an error value
function : ErrorLine(s:System.String) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| s | String | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ErrorLine
Writes an error character return
function : ErrorLine() ~ ConsoleIOReturn
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Flush
Flushes the STDOUT buffer
function : Flush() ~ ConsoleIOReturn
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
FlushError
Flushes the STDERR buffer
function : FlushError() ~ ConsoleIOReturn
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Writes a value
function : Print(b:Bool) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| b | Bool | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Writes a value
function : Print(b:Byte) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| b | Byte | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Writes a value
function : Print(c:Char) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| c | Char | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Writes a value
function : Print(i:Int) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| i | Int | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Writes a value
function : Print(f:Float) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| f | Float | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Writes a value
function : Print(cc:Char[]) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| cc | Char | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
Writes a value
function : Print(s:System.String) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| s | String | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
PrintLine
Writes a value
function : PrintLine(b:Bool) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| b | Bool | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
PrintLine
Writes a value
function : PrintLine(b:Byte) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| b | Byte | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
PrintLine
Writes a value
function : PrintLine(c:Char) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| c | Char | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
PrintLine
Writes a value
function : PrintLine(i:Int) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| i | Int | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
PrintLine
Writes a value
function : PrintLine(f:Float) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| f | Float | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
PrintLine
Writes a value
function : PrintLine(cc:Char[]) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| cc | Char | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
PrintLine
Writes a value
function : PrintLine(s:System.String) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| s | String | value |
Return
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
PrintLine
Prints a character return
function : PrintLine() ~ ConsoleIOReturn
| Type | Description |
|---|---|
| ConsoleIO | I/O console instance |
ReadBuffer
Reads bytes from STDIN
function : ReadBuffer(offset:Int, num:Int, buffer:Byte[]) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| offset | Int | destination buffer offset |
| num | Int | number of values to read |
| buffer | Byte | input buffer |
Return
| Type | Description |
|---|---|
| Int | number of byte read |
ReadBuffer
Read characters from STDIN
function : ReadBuffer(offset:Int, num:Int, buffer:Char[]) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| offset | Int | destination buffer offset |
| num | Int | number of values to read |
| buffer | Char | input buffer |
Return
| Type | Description |
|---|---|
| Int | number of byte read |
ReadLine
Reads a string from STDIN
function : ReadLine() ~ System.StringReturn
| Type | Description |
|---|---|
| String | string read |
SetFill
Sets the output fill
function : SetFill(fill:Char) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| fill | Char | output fill |
SetFloatFormat
Set floating point display format.
function : SetFloatFormat(format:Number->Format) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| format | Number->Format | integer format |
SetFloatPrecision
Set floating point display precision.
function : SetFloatPrecision(precision:Int) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| precision | Int | decimal precision |
SetIntFormat
Set integer display format.
function : SetIntFormat(format:Number->Format) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| format | Number->Format | integer format |
SetWidth
Sets the output width
function : SetWidth(width:Int) ~ ConsoleIOParameters
| Name | Type | Description |
|---|---|---|
| width | Int | output width |
WriteBuffer
Write a byte buffer to STDOUT
function : WriteBuffer(buffer:Byte[]) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| buffer | Byte | input buffer |
Return
| Type | Description |
|---|---|
| Int | true if successful, false otherwise |
WriteBuffer
Write a byte buffer to STDOUT
function : WriteBuffer(offset:Int, num:Int, buffer:Byte[]) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| offset | Int | destination buffer offset |
| num | Int | number of values to write |
| buffer | Byte | input buffer |
Return
| Type | Description |
|---|---|
| Int | number of byte written |
WriteBuffer
Write a character buffer to STDOUT
function : WriteBuffer(offset:Int, num:Int, buffer:Char[]) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| offset | Int | destination buffer offset |
| num | Int | number of values to write |
| buffer | Char | input buffer |
Return
| Type | Description |
|---|---|
| Int | number of byte written |
WriteErrorBuffer
Write a byte buffer to STDERR
function : WriteErrorBuffer(offset:Int, num:Int, buffer:Byte[]) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| offset | Int | destination buffer offset |
| num | Int | number of values to write |
| buffer | Byte | input buffer |
Return
| Type | Description |
|---|---|
| Bool | true if successful, false otherwise |
WriteErrorBuffer
Write a character buffer to STDERR
function : WriteErrorBuffer(offset:Int, num:Int, buffer:Char[]) ~ BoolParameters
| Name | Type | Description |
|---|---|---|
| offset | Int | destination buffer offset |
| num | Int | number of values to write |
| buffer | Char | input buffer |
Return
| Type | Description |
|---|---|
| Bool | true if successful, false otherwise |
WriteString
Writes a character string
function : WriteString(str:System.String) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| str | String | string to be written |