Skip to content

Instantly share code, notes, and snippets.

@dotnetCarpenter
Created September 20, 2010 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotnetCarpenter/587700 to your computer and use it in GitHub Desktop.
Save dotnetCarpenter/587700 to your computer and use it in GitHub Desktop.
"define metadata";
({
"description": "Provides a clear command to the command line",
"provides": [
{
"ep": "command",
"name": "clear",
"pointer": "#clear"
}
],
"version": "0.0.1",
"maintainers": [
{
"name": "Jon Ege Ronnenberg A.K.A. dotnetCarpenter",
"email": "jon.ronnenberg@gmail.com"
}
],
"licenses": [
{
"type": "WTFPL",
"url": "http://sam.zoy.org/wtfpl/COPYING"
}
]
})
"end";
/*
var env = require('environment').env;
var cmdLine = env.commandLine;
*/
exports.clear = function(){
/* might create problems with EventListeners? */
document.getElementsByClassName("cmd_table")[0].innerHTML = "";
request.done();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment