+ enter_ascii_art: function(command) {
+ if (this.inputEl.value.length != 6) {
+ this.log_msg('? wrong input length, try again');
+ return;
+ }
+ this.log_msg(' ' + this.inputEl.value);
+ this.full_ascii_draw += this.inputEl.value;
+ this.ascii_draw_stage += 1;
+ if (this.ascii_draw_stage < 3) {
+ this.restore_input_values();
+ } else {
+ server.send([command, this.full_ascii_draw]);
+ this.full_ascii_draw = '';
+ this.ascii_draw_stage = 0;
+ this.inputEl.value = '';
+ this.switch_mode('edit');
+ }
+ },