Skip to content

Commit

Permalink
Added copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
neauoire committed May 24, 2019
1 parent ea2bcb3 commit e51006c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions desktop/sources/scripts/commander.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export default function Commander (terminal) {
this.operations = { this.operations = {
'apm': (val, run) => { if (run) { terminal.clock.set(null, parseInt(val)) } }, 'apm': (val, run) => { if (run) { terminal.clock.set(null, parseInt(val)) } },
'bpm': (val, run) => { if (run) { terminal.clock.set(parseInt(val), parseInt(val), true) } }, 'bpm': (val, run) => { if (run) { terminal.clock.set(parseInt(val), parseInt(val), true) } },
'copy': (val, run) => { if (run) { terminal.cursor.copy() } },
'paste': (val, run) => { if (run) { terminal.cursor.paste(true) } },
'color': (val, run) => { 'color': (val, run) => {
const parts = val.split(';') const parts = val.split(';')
if (isColor(parts[0])) { terminal.theme.active.b_med = '#' + parts[0] } if (isColor(parts[0])) { terminal.theme.active.b_med = '#' + parts[0] }
Expand Down

0 comments on commit e51006c

Please sign in to comment.