X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fxterm%2Fsrc%2Fcommon%2Fservices%2FBufferService.ts;fp=node_modules%2Fxterm%2Fsrc%2Fcommon%2Fservices%2FBufferService.ts;h=0000000000000000000000000000000000000000;hp=c7b6afce4ec0dd35957d6b650186937e49f7f328;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hpb=acb5f682a2b75b972710cabd81658f63071324b0 diff --git a/node_modules/xterm/src/common/services/BufferService.ts b/node_modules/xterm/src/common/services/BufferService.ts deleted file mode 100644 index c7b6afc..0000000 --- a/node_modules/xterm/src/common/services/BufferService.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) 2019 The xterm.js authors. All rights reserved. - * @license MIT - */ - -import { IBufferService, IOptionsService } from 'common/services/Services'; -import { BufferSet } from 'common/buffer/BufferSet'; -import { IBufferSet, IBuffer } from 'common/buffer/Types'; - -export const MINIMUM_COLS = 2; // Less than 2 can mess with wide chars -export const MINIMUM_ROWS = 1; - -export class BufferService implements IBufferService { - serviceBrand: any; - - public cols: number; - public rows: number; - public buffers: IBufferSet; - - public get buffer(): IBuffer { return this.buffers.active; } - - constructor( - @IOptionsService private _optionsService: IOptionsService - ) { - this.cols = Math.max(_optionsService.options.cols, MINIMUM_COLS); - this.rows = Math.max(_optionsService.options.rows, MINIMUM_ROWS); - this.buffers = new BufferSet(_optionsService, this); - } - - public resize(cols: number, rows: number): void { - this.cols = cols; - this.rows = rows; - } - - public reset(): void { - this.buffers = new BufferSet(this._optionsService, this); - } -}