diff --git a/desktop/sources/scripts/commander.js b/desktop/sources/scripts/commander.js index 31e9cad..3e5c4ad 100644 --- a/desktop/sources/scripts/commander.js +++ b/desktop/sources/scripts/commander.js @@ -31,22 +31,20 @@ function Commander (ronin) { this.hide() } - - this._current_txt = '' + this.cache = '' this.run = (txt = this._input.value) => { if (txt.indexOf('$') > -1) { ronin.log('Present: $'); return } - this._current_txt = txt; - - if ( ronin.always !== true ) { - ronin.surface.maximize() - ronin.interpreter.run(this._current_txt) + this.cache = txt + if (ronin.always !== true) { + ronin.surface.maximize() + ronin.interpreter.run(this.cache) } } this.loop = () => { ronin.surface.maximize() - ronin.interpreter.run(this._current_txt) + ronin.interpreter.run(this.cache) ronin.always === true && requestAnimationFrame(() => this.loop()) } diff --git a/desktop/sources/scripts/library.js b/desktop/sources/scripts/library.js index 34dfcc8..52eb929 100644 --- a/desktop/sources/scripts/library.js +++ b/desktop/sources/scripts/library.js @@ -350,7 +350,7 @@ function Library (ronin) { return arg } - this.log = (arg) => { + this.debug = (arg) => { console.log(arg) return arg } diff --git a/desktop/sources/scripts/osc.js b/desktop/sources/scripts/osc.js index 6202be2..7c5389d 100644 --- a/desktop/sources/scripts/osc.js +++ b/desktop/sources/scripts/osc.js @@ -13,7 +13,7 @@ function Osc (ronin) { }) udpPort.on('message', this.onMsg) udpPort.open() - ronin.log('OSC','Started.') + ronin.log('OSC', 'Started.') } this.onMsg = (msg, timeTag, info) => { diff --git a/examples/orca.lisp b/examples/orca.lisp index 16ee567..4e61054 100644 --- a/examples/orca.lisp +++ b/examples/orca.lisp @@ -1 +1 @@ -(log (of (osc "/a") 0 "value")) \ No newline at end of file +(debug (of (osc "/a") :0 :value)) \ No newline at end of file