Comparing version 3.15.0-beta31 to 3.15.0-beta32
{ | ||
"name": "xterm", | ||
"description": "Full xterm terminal, in your browser", | ||
"version": "3.15.0-beta31", | ||
"version": "3.15.0-beta32", | ||
"main": "lib/xterm.js", | ||
@@ -6,0 +6,0 @@ "types": "typings/xterm.d.ts", |
@@ -6,3 +6,3 @@ /** | ||
import { IAttributeData, ICircularList, IBufferLine, ICellData } from 'common/Types'; | ||
import { IAttributeData, ICircularList, IBufferLine, ICellData, IMarker } from 'common/Types'; | ||
import { IEvent } from 'common/EventEmitter2'; | ||
@@ -37,2 +37,3 @@ | ||
isCursorInViewport: boolean; | ||
markers: IMarker[]; | ||
translateBufferLineToString(lineIndex: number, trimRight: boolean, startCol?: number, endCol?: number): string; | ||
@@ -47,2 +48,3 @@ getWrappedRangeForLine(y: number): { first: number, last: number }; | ||
getWhitespaceCell(attr?: IAttributeData): ICellData; | ||
addMarker(y: number): IMarker; | ||
} | ||
@@ -59,2 +61,4 @@ | ||
activateAltBuffer(fillAttr?: IAttributeData): void; | ||
resize(newCols: number, newRows: number): void; | ||
setupTabStops(i?: number): void; | ||
} |
@@ -6,3 +6,5 @@ /** | ||
import { IBufferService, IOptionsService } from './Services'; | ||
import { IBufferService, IOptionsService } from 'common/services/Services'; | ||
import { BufferSet } from 'common/buffer/BufferSet'; | ||
import { IBufferSet, IBuffer } from 'common/buffer/Types'; | ||
@@ -15,8 +17,12 @@ export const MINIMUM_COLS = 2; // Less than 2 can mess with wide chars | ||
public rows: number; | ||
public buffers: IBufferSet; | ||
public get buffer(): IBuffer { return this.buffers.active; } | ||
constructor( | ||
optionsService: IOptionsService | ||
private _optionsService: IOptionsService | ||
) { | ||
this.cols = Math.max(optionsService.options.cols, MINIMUM_COLS); | ||
this.rows = Math.max(optionsService.options.rows, MINIMUM_ROWS); | ||
this.cols = Math.max(_optionsService.options.cols, MINIMUM_COLS); | ||
this.rows = Math.max(_optionsService.options.rows, MINIMUM_ROWS); | ||
this.buffers = new BufferSet(_optionsService, this); | ||
} | ||
@@ -28,2 +34,6 @@ | ||
} | ||
public reset(): void { | ||
this.buffers = new BufferSet(this._optionsService, this); | ||
} | ||
} |
@@ -7,2 +7,3 @@ /** | ||
import { IEvent } from 'common/EventEmitter2'; | ||
import { IBuffer, IBufferSet } from 'common/buffer/Types'; | ||
@@ -12,2 +13,4 @@ export interface IBufferService { | ||
readonly rows: number; | ||
readonly buffer: IBuffer; | ||
readonly buffers: IBufferSet; | ||
@@ -17,2 +20,3 @@ // TODO: Move resize event here | ||
resize(cols: number, rows: number): void; | ||
reset(): void; | ||
} | ||
@@ -19,0 +23,0 @@ |
@@ -9,3 +9,3 @@ /** | ||
import { IBufferLine } from 'common/Types'; | ||
import { MouseHelper } from './browser/input/MouseHelper'; | ||
import { MouseHelper } from 'browser/input/MouseHelper'; | ||
import * as Browser from 'common/Platform'; | ||
@@ -12,0 +12,0 @@ import { SelectionModel } from './SelectionModel'; |
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 too big to display
1633892
16446