Skip to content
Permalink
Browse files

Move selection on write

  • Loading branch information...
neauoire committed May 23, 2019
1 parent 563263b commit f855ff50bf9b927a89791fdb4e7e85985b36e023
Showing with 2 additions and 1 deletion.
  1. +2 −1 desktop/sources/scripts/commander.js
@@ -55,10 +55,11 @@ export default function Commander (terminal) {
'time': (val, run) => { terminal.clock.setFrame(parseInt(val)) },
'write': (val, run) => {
const pos = val.split(';')
const g = pos[0].substr(0,1)
const g = pos[0].substr(0, 1)
const x = pos[1] ? parseInt(pos[1]) : terminal.cursor.x
const y = pos[2] ? parseInt(pos[2]) : terminal.cursor.y
if (!isNaN(x) && !isNaN(y) && g) {
terminal.cursor.select(x, y)
terminal.orca.write(x, y, g)
}
}

0 comments on commit f855ff5

Please sign in to comment.
You can’t perform that action at this time.