function print_help (left_position, right_position) { var help_message = [ { func: clc.green, msg: 'Keyboard shortcuts' }, { func: clc.green, msg: 'Press E or Q to exit cli-cube-timer' }, { func: clc.red.underline, msg: 'Press Space or click your mouse to start a solve' }, { func: clc.blue, msg: 'Press S to see your session statistics' }, { func: clc.blue, msg: 'Press T to trash a solve while the solve timer is running' }, { func: clc.blue, msg: 'Press D after a solve to change it to a DNF' }, { func: clc.blue, msg: 'Press P after a solve to add a penalty of 2 seconds' }, { func: clc.green, msg: 'Press H to print this list of keyboard shortcuts' } ]; for (var init = 0; init < help_message.length; init++) { charm.position(left_position, right_position + init); console.log(help_message[init].func(help_message[init].msg)) } return help_message.length + 1; }
try { d = JSON.parse(d); fun = d.f || d.fun || d.func; data = d.data; console.log('req url: ', fun);
return ascii.func(object);
return ascii.func(object);
return ascii.func(object);
return ascii.func(object);