remove blankLine from Terminal

This commit is contained in:
Jörg Breitbart
2018-08-26 14:35:28 +02:00
parent cd8477a942
commit a553415216
3 changed files with 0 additions and 20 deletions
-12
View File
@@ -1771,18 +1771,6 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
this.eraseRight(0, y);
}
/**
* Return the data array of a blank line
* @param cur First bunch of data for each "blank" character.
* @param isWrapped Whether the new line is wrapped from the previous line.
* @param cols The number of columns in the terminal, if this is not
* set, the terminal's current column count would be used.
*/
// FIXME: can this be removed after transition to TerminalLine.blankLine?
public blankLine(cur?: boolean, isWrapped?: boolean, cols?: number): TerminalLine {
return TerminalLine.blankLine(cols || this.cols, cur ? this.eraseAttr() : DEFAULT_ATTR, isWrapped);
}
/**
* If cur return the back color xterm feature attribute. Else return default attribute.
* @param cur
-2
View File
@@ -75,7 +75,6 @@ export interface IInputHandlingTerminal extends IEventEmitter {
eraseRight(x: number, y: number): void;
eraseLine(y: number): void;
eraseLeft(x: number, y: number): void;
blankLine(cur?: boolean, isWrapped?: boolean): TerminalLine;
is(term: string): boolean;
setgCharset(g: number, charset: ICharset): void;
resize(x: number, y: number): void;
@@ -235,7 +234,6 @@ export interface ITerminal extends PublicTerminal, IElementAccessor, IBufferAcce
cancel(ev: Event, force?: boolean): boolean | void;
log(text: string): void;
showCursor(): void;
blankLine(cur?: boolean, isWrapped?: boolean, cols?: number): TerminalLine;
}
export interface IBufferAccessor {
-6
View File
@@ -146,9 +146,6 @@ export class MockTerminal implements ITerminal {
refresh(start: number, end: number): void {
throw new Error('Method not implemented.');
}
blankLine(cur?: boolean, isWrapped?: boolean, cols?: number): TerminalLine {
return TerminalLine.blankLine(this.cols, 0);
}
registerCharacterJoiner(handler: CharacterJoinerHandler): number { return 0; }
deregisterCharacterJoiner(joinerId: number): void { }
}
@@ -224,9 +221,6 @@ export class MockInputHandlingTerminal implements IInputHandlingTerminal {
eraseLeft(x: number, y: number): void {
throw new Error('Method not implemented.');
}
blankLine(cur?: boolean, isWrapped?: boolean): TerminalLine {
throw new Error('Method not implemented.');
}
prevStop(x?: number): number {
throw new Error('Method not implemented.');
}