-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80281 from microsoft/tyriar/80074_xterm_types
Move xterm type customizations into contrib/terminal
- Loading branch information
Showing
5 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
export interface XTermCore { | ||
_onScroll: IEventEmitter<number>; | ||
_onKey: IEventEmitter<{ key: string }>; | ||
|
||
_charSizeService: { | ||
width: number; | ||
height: number; | ||
}; | ||
|
||
_coreService: { | ||
triggerDataEvent(data: string, wasUserInput?: boolean): void; | ||
}; | ||
|
||
_renderService: { | ||
_renderer: { | ||
_renderLayers: any[]; | ||
}; | ||
_onIntersectionChange: any; | ||
}; | ||
|
||
// TODO: Remove below once a synchronous write API is added | ||
// The below are only used in tests | ||
writeBuffer: string[]; | ||
_innerWrite(): void; | ||
} | ||
|
||
export interface IEventEmitter<T> { | ||
fire(e: T): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters