]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Document all public methods
authorParis <paris@sourcelair.com>
Wed, 13 Jul 2016 10:14:02 +0000 (13:14 +0300)
committerParis <paris@sourcelair.com>
Wed, 13 Jul 2016 10:14:02 +0000 (13:14 +0300)
src/xterm.js

index a20216c10bedb79bdbbad4cd8256f55bbc49c9b9..df291fa13ffc9c51c87cc135afdcd0f25ebf4a6e 100644 (file)
     inherits(Terminal, EventEmitter);
 
                /**
-                *
                 * back_color_erase feature for xterm.
                 */
     Terminal.prototype.eraseAttr = function() {
     };
 
 
+
+       /**
+        * Setup the tab stops.
+        * @param {number} i
+        */
     Terminal.prototype.setupStops = function(i) {
       if (i != null) {
         if (!this.tabs[i]) {
     };
 
 
+    /**
+        * Move the cursor to the previous tab stop from the given position (default is current).
+        * @param {number} x The position to move the cursor to the previous tab stop.
+        */
     Terminal.prototype.prevStop = function(x) {
       if (x == null) x = this.x;
       while (!this.tabs[--x] && x > 0);
     };
 
 
+       /**
+        * Move the cursor one tab stop forward from the given position (default is current).
+        * @param {number} x The position to move the cursor one tab stop forward.
+        */
     Terminal.prototype.nextStop = function(x) {
       if (x == null) x = this.x;
       while (!this.tabs[++x] && x < this.cols);
       return line;
     };
 
+
+       /**
+        * If cur return the back color xterm feature attribute. Else return defAttr.
+        * @param {object} cur
+        */
     Terminal.prototype.ch = function(cur) {
       return cur
         ? [this.eraseAttr(), ' ', 1]
         : [this.defAttr, ' ', 1];
     };
 
+
+       /**
+        * Evaluate if the current erminal is the given argument.
+        * @param {object} term The terminal to evaluate
+        */
     Terminal.prototype.is = function(term) {
       var name = this.termName;
       return (name + '').indexOf(term) === 0;