type
Console
@Js
abstract const class Console : Obj
Console provides utilities to interact with the terminal console. For Java this API is designed to use jline if installed. In browser JavaScript environments this APIs uses the JS debugging window.
methods
clear |
Clear the console of all text if supported |
---|---|
cur |
Get the default console for the virtual machine |
debug |
Print a message to the console at the debug level |
err |
Print a message to the console at the error level |
group |
Enter an indented group level in the console. |
groupEnd |
Exit an indented, collapsable group level |
height |
Number of lines that fit vertically in console or null if unknown |
info |
Print a message to the console at the informational level |
prompt |
Prompt the user to enter a string from standard input. |
promptPassword |
Prompt the user to enter a password string from standard input with echo disabled. |
table |
Print tabular data to the console |
warn |
Print a message to the console at the warning level |
width |
Number of chars that fit horizontally in console or null if unknown |
wrap |
Construct a console that wraps an output stream. |
Slot Details
clear
abstract This clear()
Clear the console of all text if supported
cur
static Console cur()
Get the default console for the virtual machine
debug
err
group
groupEnd
abstract This groupEnd()
Exit an indented, collapsable group level
height
abstract Int? height()
Number of lines that fit vertically in console or null if unknown
info
prompt
promptPassword
table
warn
width
abstract Int? width()
Number of chars that fit horizontally in console or null if unknown