Module: josm/scriptingconsole

Provides a set of functions to write to the built-in scripting console.
Source:

Methods


<static> clear()

Clears the scripting console.
Source:
Example
import * as console from 'josm/scriptingconsole'
console.clear()

<static> hide()

Hides the scripting console
Source:
Example
import * as console from 'josm/scriptingconsole'
console.hide()

<static> print(message [, values])

Prints a string to the console
Parameters:
Name Type Argument Description
message string the message
values object <optional>
<repeatable>
optional values
Source:
Example
import {print} from 'josm/scriptingconsole'
print('Hello world!')

// or use formatting
print('Hello world! My name is {0}', 'foo')

<static> println(message [, values])

Prints a string to the console, including newline
Parameters:
Name Type Argument Description
message string the message
values object <optional>
<repeatable>
optional values
Source:
Example
import {println} from 'josm/scriptingconsole'
println('Hello world!')

// or use formatting
println('Hello world! My name is {0}', 'foo')

<static> show()

Shows the scripting console
Source:
Example
import * as console from 'josm/scriptingconsole'
console.show()

<static> toggle()

Toggles the visibility of the scripting console
Source:
Example
import * as console from 'josm/scriptingconsole'
console.toggle()