Quest 6 - CLEAR command

Richard Headkid
06 Dec 2020, 01:54
commands.push(new Cmd('MetaClear', {
  regex:/^clear$/,
  script:function() {
	  $("#output").children().remove()
	  return;
  },
}));

I found a clearScreen() function in the existing code, but it didn't clear the screen until the next turn, unless I called io.outputFromQueue(), which I deemed a bad idea.


The Pixie
06 Dec 2020, 10:17

Is this something that people actually use? If there is reason to think they do, I would be happy to add it.

I found a clearScreen() function in the existing code, but it didn't clear the screen until the next turn, unless I called io.outputFromQueue(), which I deemed a bad idea.

That is a bug that will get resolved by the end of the day (i.e., next time I upload).