]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Fix leading whitespaces (eliminate tabs)
authorParis <paris@sourcelair.com>
Wed, 13 Jul 2016 10:22:51 +0000 (13:22 +0300)
committerParis <paris@sourcelair.com>
Wed, 13 Jul 2016 10:22:51 +0000 (13:22 +0300)
src/xterm.js

index df291fa13ffc9c51c87cc135afdcd0f25ebf4a6e..e38d3d7cc2bc2033bf414bdb6bdd13d5f6f54562 100644 (file)
       Terminal.bindBlur(this);
     };
 
-       /**
+    /**
         * Clears all selected text, inside the terminal.
         */
                Terminal.prototype.clearSelection = function() {
       }
     };
 
-       /**
+    /**
         * This function temporarily enables (leases) the contentEditable value of the terminal, which
         * should be set back to false within 5 seconds at most.
         */
       });
     };
 
-       /**
+    /**
         * Cancel the cut event completely.
         * @param {Xterm} term The terminal on which to bind the cut event handling functionality.
         * @static
     };
 
 
-       /**
+    /**
      * XTerm mouse events
      * http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#Mouse%20Tracking
      * To better understand these
       this.emit('refresh', {element: this.element, start: start, end: end});
     };
 
-       /**
+    /**
         * Display the cursor element
         */
     Terminal.prototype.showCursor = function() {
       }
     };
 
-       /**
+    /**
         * Scroll the terminal
         */
     Terminal.prototype.scroll = function() {
       this.updateRange(this.scrollBottom);
     };
 
-       /**
+    /**
         * Scroll the display of the terminal
         * @param {number} disp The number of lines to scroll down (negatives scroll up).
         */
       this.write(data + '\r\n');
     };
 
-       /**
+    /**
         * Handle a keydown event
      * Key Resources:
      *   - https://developer.mozilla.org/en-US/docs/DOM/KeyboardEvent
       return result;
     };
 
-       /**
+    /**
         * Set the G level of the terminal
         * @param g
         */
       return false;
     };
 
-       /**
+    /**
         * Send data for handling to the terminal
         * @param {string} data
         */
       this.queue += data;
     };
 
-       /**
+    /**
         * Ring the bell.
         * Note: We could do sweet things with webaudio here
         */
       if (this.popOnBell) this.focus();
     };
 
-       /**
+    /**
         * Log the current state to the console.
         */
     Terminal.prototype.log = function() {
       this.context.console.log.apply(this.context.console, args);
     };
 
-       /**
+    /**
         * Log the current state as error to the console.
         */
     Terminal.prototype.error = function() {
       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.
         */
 
 
 
-       /**
+    /**
         * Setup the tab stops.
         * @param {number} i
         */
     };
 
 
-       /**
+    /**
         * 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.
         */
     };
 
 
-       /**
+    /**
         * Erase in the identified line everything from "x" to the end of the line (right).
         * @param {number} x The column from which to start erasing to the end of the line.
         * @param {number} y The line in which to operate.
 
 
 
-       /**
+    /**
         * Erase in the identified line everything from "x" to the start of the line (left).
         * @param {number} x The column from which to start erasing to the start of the line.
         * @param {number} y The line in which to operate.
     };
 
 
-       /**
+    /**
         * Erase all content in the given line
         * @param {number} y The line to erase all of its contents.
         */
     };
 
 
-       /**
+    /**
         * Return the data array of a blank line/
         * @param {number} cur First bunch of data for each "blank" character.
         */
     };
 
 
-       /**
+    /**
         * If cur return the back color xterm feature attribute. Else return defAttr.
         * @param {object} cur
         */
     };
 
 
-       /**
+    /**
         * Evaluate if the current erminal is the given argument.
         * @param {object} term The terminal to evaluate
         */
     };
 
 
-       /**
+    /**
         * Emit the 'data' event and populate the given data.
         * @param {string} data The data to populate in the event.
         */
     };
 
 
-       /**
+    /**
         * Emit the 'title' event and populate the given title.
         * @param {string} title The title to populate in the event.
         */
      * ESC
      */
 
-       /**
+    /**
      * ESC D Index (IND is 0x84).
      */
     Terminal.prototype.index = function() {
     };
 
 
-       /**
+    /**
      * ESC M Reverse Index (RI is 0x8d).
      */
     Terminal.prototype.reverseIndex = function() {
     };
 
 
-       /**
+    /**
      * ESC c Full Reset (RIS).
      */
     Terminal.prototype.reset = function() {
     };
 
 
-       /**
+    /**
      * ESC H Tab Set (HTS is 0x88).
      */
     Terminal.prototype.tabSet = function() {
      * CSI
      */
 
-       /**
+    /**
      * CSI Ps A
      * Cursor Up Ps Times (default = 1) (CUU).
      */
     };
 
 
-       /**
+    /**
      * CSI Ps B
      * Cursor Down Ps Times (default = 1) (CUD).
      */
     };
 
 
-       /**
+    /**
      * CSI Ps D
      * Cursor Backward Ps Times (default = 1) (CUB).
      */
     };
 
 
-       /**
+    /**
      * CSI Ps ; Ps H
      * Cursor Position [row;column] (default = [1,1]) (CUP).
      */
     };
 
 
-       /**
+    /**
      * CSI Ps J  Erase in Display (ED).
      *     Ps = 0  -> Erase Below (default).
      *     Ps = 1  -> Erase Above.
     };
 
 
-       /**
+    /**
      * CSI Ps K  Erase in Line (EL).
      *     Ps = 0  -> Erase to Right (default).
      *     Ps = 1  -> Erase to Left.
     };
 
 
-       /**
+       /**
      * CSI Pm m  Character Attributes (SGR).
      *     Ps = 0  -> Normal (default).
      *     Ps = 1  -> Bold.
     };
 
 
-       /**
+       /**
      * CSI Ps n  Device Status Report (DSR).
      *     Ps = 5  -> Status Report.  Result (``OK'') is
      *   CSI 0 n
      * Additions
      */
 
-       /**
+       /**
      * CSI Ps @
      * Insert Ps (Blank) Character(s) (default = 1) (ICH).
      */
       }
     };
 
-       /**
+       /**
      * CSI Ps E
      * Cursor Next Line Ps Times (default = 1) (CNL).
      * same as CSI Ps B ?
     };
 
 
-       /**
+    /**
      * CSI Ps F
      * Cursor Preceding Line Ps Times (default = 1) (CNL).
      * reuse CSI Ps A ?
     };
 
 
-       /**
+    /**
      * CSI Ps G
      * Cursor Character Absolute  [column] (default = [row,1]) (CHA).
      */
     };
 
 
-       /**
+    /**
      * CSI Ps L
      * Insert Ps Line(s) (default = 1) (IL).
      */
     };
 
 
-       /**
+    /**
      * CSI Ps M
      * Delete Ps Line(s) (default = 1) (DL).
      */
     };
 
 
-       /**
+    /**
      * CSI Ps P
      * Delete Ps Character(s) (default = 1) (DCH).
      */
       }
     };
 
-       /**
+    /**
      * CSI Ps X
      * Erase Ps Character(s) (default = 1) (ECH).
      */
       }
     };
 
-       /**
+    /**
      * CSI Pm `  Character Position Absolute
      *   [column] (default = [row,1]) (HPA).
      */
     };
 
 
-       /**
+    /**
      * 141 61 a * HPR -
      * Horizontal Position Relative
      * reuse CSI Ps C ?
     };
 
 
-       /**
+    /**
      * CSI Ps c  Send Device Attributes (Primary DA).
      *     Ps = 0  or omitted -> request attributes from terminal.  The
      *     response depends on the decTerminalID resource setting.
     };
 
 
-       /**
+    /**
      * CSI Pm d
      * Line Position Absolute  [row] (default = [1,column]) (VPA).
      */
     };
 
 
-       /**
+    /**
      * 145 65 e * VPR - Vertical Position Relative
      * reuse CSI Ps B ?
      */
     };
 
 
-       /**
+    /**
      * CSI Ps ; Ps f
      *   Horizontal and Vertical Position [row;column] (default =
      *   [1,1]) (HVP).
     };
 
 
-       /**
+    /**
      * CSI Pm h  Set Mode (SM).
      *     Ps = 2  -> Keyboard Action Mode (AM).
      *     Ps = 4  -> Insert Mode (IRM).
       }
     };
 
-       /**
+    /**
      * CSI Pm l  Reset Mode (RM).
      *     Ps = 2  -> Keyboard Action Mode (AM).
      *     Ps = 4  -> Replace Mode (IRM).
     };
 
 
-       /**
+    /**
      * CSI Ps ; Ps r
      *   Set Scrolling Region [top;bottom] (default = full size of win-
      *   dow) (DECSTBM).
     };
 
 
-       /**
+    /**
      * CSI s
      *   Save cursor (ANSI.SYS).
      */
     };
 
 
-       /**
+    /**
      * CSI u
      *   Restore cursor (ANSI.SYS).
      */
      * Lesser Used
      */
 
-       /**
+    /**
      * CSI Ps I
      *   Cursor Forward Tabulation Ps tab stops (default = 1) (CHT).
      */
     };
 
 
-       /**
+    /**
      * CSI Ps T  Scroll down Ps lines (default = 1) (SD).
      */
     Terminal.prototype.scrollDown = function(params) {
     };
 
 
-       /**
+    /**
      * CSI Ps ; Ps ; Ps ; Ps ; Ps T
      *   Initiate highlight mouse tracking.  Parameters are
      *   [func;startx;starty;firstrow;lastrow].  See the section Mouse
     };
 
 
-       /**
+    /**
      * CSI > Ps; Ps T
      *   Reset one or more features of the title modes to the default
      *   value.  Normally, "reset" disables the feature.  It is possi-
     };
 
 
-       /**
+    /**
      * CSI Ps Z  Cursor Backward Tabulation Ps tab stops (default = 1) (CBT).
      */
     Terminal.prototype.cursorBackwardTab = function(params) {
     };
 
 
-       /**
+    /**
      * CSI Ps b  Repeat the preceding graphic character Ps times (REP).
      */
     Terminal.prototype.repeatPrecedingCharacter = function(params) {
     };
 
 
-       /**
+    /**
      * CSI Ps g  Tab Clear (TBC).
      *     Ps = 0  -> Clear Current Column (default).
      *     Ps = 3  -> Clear All.
     };
 
 
-       /**
+    /**
      * CSI Pm i  Media Copy (MC).
      *     Ps = 0  -> Print screen (default).
      *     Ps = 4  -> Turn off printer controller mode.
     };
 
 
-       /**
+    /**
      * CSI > Ps; Ps m
      *   Set or reset resource-values used by xterm to decide whether
      *   to construct escape sequences holding information about the
     };
 
 
-       /**
+    /**
      * CSI > Ps n
      *   Disable modifiers which may be enabled via the CSI > Ps; Ps m
      *   sequence.  This corresponds to a resource value of "-1", which
     };
 
 
-       /**
+    /**
      * CSI > Ps p
      *   Set resource value pointerMode.  This is used by xterm to
      *   decide whether to hide the pointer cursor as the user types.
     };
 
 
-       /**
+    /**
      * CSI Ps$ p
      *   Request ANSI mode (DECRQM).  For VT300 and up, reply is
      *     CSI Ps; Pm$ y
     };
 
 
-       /**
+    /**
      * CSI ? Ps$ p
      *   Request DEC private mode (DECRQM).  For VT300 and up, reply is
      *     CSI ? Ps; Pm$ p
     };
 
 
-       /**
+    /**
      * CSI Ps ; Ps " p
      *   Set conformance level (DECSCL).  Valid values for the first
      *   parameter:
     };
 
 
-       /**
+    /**
      * CSI Ps q  Load LEDs (DECLL).
      *     Ps = 0  -> Clear all LEDS (default).
      *     Ps = 1  -> Light Num Lock.
     };
 
 
-       /**
+    /**
      * CSI Ps SP q
      *   Set cursor style (DECSCUSR, VT520).
      *     Ps = 0  -> blinking block.
     };
 
 
-       /**
+    /**
      * CSI Ps " q
      *   Select character protection attribute (DECSCA).  Valid values
      *   for the parameter:
     };
 
 
-       /**
+    /**
      * CSI ? Pm r
      *   Restore DEC Private Mode Values.  The value of Ps previously
      *   saved is restored.  Ps values are the same as for DECSET.
     };
 
 
-       /**
+    /**
      * CSI Pt; Pl; Pb; Pr; Ps$ r
      *   Change Attributes in Rectangular Area (DECCARA), VT400 and up.
      *     Pt; Pl; Pb; Pr denotes the rectangle.
     };
 
 
-       /**
+    /**
      * CSI Pc; Pt; Pl; Pb; Pr$ x
      *   Fill Rectangular Area (DECFRA), VT420 and up.
      *     Pc is the character to use.
     };
 
 
-       /**
+    /**
      * CSI Ps ; Pu ' z
      *   Enable Locator Reporting (DECELR).
      *   Valid values for the first parameter:
     };
 
 
-       /**
+    /**
      * CSI Pt; Pl; Pb; Pr$ z
      *   Erase Rectangular Area (DECERA), VT400 and up.
      *     Pt; Pl; Pb; Pr denotes the rectangle.
     };
 
 
-       /**
+    /**
      * CSI P m SP }
      * Insert P s Column(s) (default = 1) (DECIC), VT420 and up.
      * NOTE: xterm doesn't enable this code by default.
     };
 
 
-       /**
+    /**
      * CSI P m SP ~
      * Delete P s Column(s) (default = 1) (DECDC), VT420 and up
      * NOTE: xterm doesn't enable this code by default.