Comparing version 3.13.0-beta1 to 3.13.0-beta2
@@ -114,2 +114,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.search = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
this._cursorMoveListener = this._terminal.onCursorMove(function () { return _this._destroyLinesCache(); }); | ||
this._resizeListener = this._terminal.onResize(function () { return _this._destroyLinesCache(); }); | ||
} | ||
@@ -125,2 +126,6 @@ window.clearTimeout(this._linesCacheTimeoutId); | ||
} | ||
if (this._resizeListener) { | ||
this._resizeListener.dispose(); | ||
this._resizeListener = undefined; | ||
} | ||
if (this._linesCacheTimeoutId) { | ||
@@ -127,0 +132,0 @@ window.clearTimeout(this._linesCacheTimeoutId); |
@@ -7,2 +7,3 @@ import { ISearchHelper, ISearchAddonTerminal, ISearchOptions, ISearchResult } from './Interfaces'; | ||
private _cursorMoveListener; | ||
private _resizeListener; | ||
constructor(_terminal: ISearchAddonTerminal); | ||
@@ -9,0 +10,0 @@ findNext(term: string, searchOptions?: ISearchOptions): boolean; |
@@ -113,2 +113,3 @@ "use strict"; | ||
this._cursorMoveListener = this._terminal.onCursorMove(function () { return _this._destroyLinesCache(); }); | ||
this._resizeListener = this._terminal.onResize(function () { return _this._destroyLinesCache(); }); | ||
} | ||
@@ -124,2 +125,6 @@ window.clearTimeout(this._linesCacheTimeoutId); | ||
} | ||
if (this._resizeListener) { | ||
this._resizeListener.dispose(); | ||
this._resizeListener = undefined; | ||
} | ||
if (this._linesCacheTimeoutId) { | ||
@@ -126,0 +131,0 @@ window.clearTimeout(this._linesCacheTimeoutId); |
@@ -9,2 +9,3 @@ "use strict"; | ||
exports.ITALIC_CLASS = 'xterm-italic'; | ||
exports.UNDERLINE_CLASS = 'xterm-underline'; | ||
exports.CURSOR_CLASS = 'xterm-cursor'; | ||
@@ -66,2 +67,5 @@ exports.CURSOR_BLINK_CLASS = 'xterm-cursor-blink'; | ||
} | ||
if (this._workCell.isUnderline()) { | ||
charElement.classList.add(exports.UNDERLINE_CLASS); | ||
} | ||
charElement.textContent = this._workCell.getChars() || Buffer_1.WHITESPACE_CELL_CHAR; | ||
@@ -68,0 +72,0 @@ var swapColor = this._workCell.isInverse(); |
{ | ||
"name": "xterm", | ||
"description": "Full xterm terminal, in your browser", | ||
"version": "3.13.0-beta1", | ||
"version": "3.13.0-beta2", | ||
"main": "lib/public/Terminal.js", | ||
@@ -64,2 +64,2 @@ "types": "typings/xterm.d.ts", | ||
} | ||
} | ||
} |
@@ -171,2 +171,12 @@ # [![xterm.js logo](logo-full.png)](https://xtermjs.org) | ||
### Beta builds | ||
Our CI releases beta builds to npm for every change that goes into master, install the latest beta build with: | ||
``` | ||
npm install -S xterm@beta | ||
``` | ||
These should generally be stable but some bugs may slip in, we recommend using the beta build primarily to test out new features and for verifying bug fixes. | ||
## Contributing | ||
@@ -173,0 +183,0 @@ |
@@ -24,2 +24,3 @@ /** | ||
private _cursorMoveListener: IDisposable | undefined; | ||
private _resizeListener: IDisposable | undefined; | ||
@@ -189,2 +190,3 @@ constructor(private _terminal: ISearchAddonTerminal) { | ||
this._cursorMoveListener = this._terminal.onCursorMove(() => this._destroyLinesCache()); | ||
this._resizeListener = this._terminal.onResize(() => this._destroyLinesCache()); | ||
} | ||
@@ -202,2 +204,6 @@ | ||
} | ||
if (this._resizeListener) { | ||
this._resizeListener.dispose(); | ||
this._resizeListener = undefined; | ||
} | ||
if (this._linesCacheTimeoutId) { | ||
@@ -204,0 +210,0 @@ window.clearTimeout(this._linesCacheTimeoutId); |
@@ -14,2 +14,3 @@ /** | ||
export const ITALIC_CLASS = 'xterm-italic'; | ||
export const UNDERLINE_CLASS = 'xterm-underline'; | ||
export const CURSOR_CLASS = 'xterm-cursor'; | ||
@@ -92,2 +93,6 @@ export const CURSOR_BLINK_CLASS = 'xterm-cursor-blink'; | ||
if (this._workCell.isUnderline()) { | ||
charElement.classList.add(UNDERLINE_CLASS); | ||
} | ||
charElement.textContent = this._workCell.getChars() || WHITESPACE_CELL_CHAR; | ||
@@ -94,0 +99,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2553521
38504
192