Clear

Wipes history printed to the screen. Does not clear command history.

Command line interface

Syntax

  1. $ clear

Arguments

Clear takes no arguments.

Example

clear.js

  1. /**
  2. * Clear screen
  3. **/
  4. TinyShell.plugins.clear = new Class({
  5. description: "Clear history",
  6. run : function(terminal) {
  7. terminal.clear_history();
  8. terminal.resume();
  9. }
  10. });

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>