]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
progress
authorParis <paris@sourcelair.com>
Fri, 24 Jun 2016 00:41:08 +0000 (03:41 +0300)
committerParis <paris@sourcelair.com>
Wed, 6 Jul 2016 09:32:40 +0000 (09:32 +0000)
jsdoc.json
src/xterm.js

index 28ca16cb4ab07644bdbcf45859a3234c68ce19ae..66b174e529b2b23ed78f48a6a0b5a03c06679736 100644 (file)
@@ -16,6 +16,9 @@
     "recurse": true,
     "verbose": true
   },
+  "plugins": [
+    "plugins/markdown"
+  ],
   "templates": {
     "cleverLinks": false,
     "monospaceLinks": false
index 2b00b3de65102e1df2d5aa9a3b876980cf9b6f95..0ffea96efc580d4dc021d16ec303be4d516640a0 100644 (file)
       INVISIBLE: 16
     }
 
-    /*
-     * Rendering Engine
-     *
-     * In the screen buffer, each character
-     * is stored as a an array with a character
-     * and a 32-bit integer.
-     * First value: a utf-16 character.
-     * Second value:
-     * Next 9 bits: background color (0-511).
-     * Next 9 bits: foreground color (0-511).
-     * Next 14 bits: a mask for misc. flags:
-     *   1=bold, 2=underline, 4=blink, 8=inverse, 16=invisible
-    */
-
     /**
-     * Refreshes terminal content within two rows (inclusive).
+     * Refreshes (re-renders) terminal content within two rows (inclusive)
+     *
+     * Rendering Engine:
+     *
+     * In the screen buffer, each character is stored as a an array with a character
+     * and a 32-bit integer:
+     *   - First value: a utf-16 character.
+     *   - Second value:
+     *   - Next 9 bits: background color (0-511).
+     *   - Next 9 bits: foreground color (0-511).
+     *   - Next 14 bits: a mask for misc. flags:
+     *     - 1=bold
+     *     - 2=underline
+     *     - 4=blink
+     *     - 8=inverse
+     *     - 16=invisible
      *
      * @param {number} start The row to start from (between 0 and terminal's height terminal - 1)
      * @param {number} end The row to end at (between fromRow and terminal's height terminal - 1)
       this.emit('resize', {terminal: this, cols: x, rows: y});
     };
 
+       /**
+        * Updates the range of rows to refresh
+        * @param {number} y The number of rows to refresh next.
+        */
     Terminal.prototype.updateRange = function(y) {
       if (y < this.refreshStart) this.refreshStart = y;
       if (y > this.refreshEnd) this.refreshEnd = y;
       // }
     };
 
+    /**
+     * Set the range of refreshing to the maximyum value
+     */
     Terminal.prototype.maxRange = function() {
       this.refreshStart = 0;
       this.refreshEnd = this.rows - 1;