remove unicodeVersion from options

This commit is contained in:
Jörg Breitbart
2020-01-07 00:29:48 +01:00
parent 3e1dbd4c39
commit 7d8c0268ea
5 changed files with 11 additions and 20 deletions
+10 -10
View File
@@ -215,12 +215,6 @@ declare module 'xterm' {
*/
theme?: ITheme;
/**
* Unicode version to be used for wcwidth. Default is version 6.
* New unicode versions can be registered through the `Terminal.unicode.register` API.
*/
unicodeVersion?: string;
/**
* Whether "Windows mode" is enabled. Because Windows backends winpty and
* conpty operate by doing line wrapping on their side, xterm.js does not
@@ -1173,9 +1167,14 @@ declare module 'xterm' {
* Used to register custom Unicode versions with `Terminal.unicode.register`.
*/
export interface IUnicodeVersionProvider {
/** String indicating the Unicode version provided. */
/**
* String indicating the Unicode version provided.
*/
readonly version: string;
/** Unicode version dependent wcwidth implementation. */
/**
* Unicode version dependent wcwidth implementation.
*/
wcwidth(codepoint: number): 0 | 1 | 2;
}
@@ -1187,13 +1186,14 @@ declare module 'xterm' {
* Register a custom Unicode version provider.
*/
register(provider: IUnicodeVersionProvider): void;
/**
* Registered Unicode versions.
*/
readonly versions: ReadonlyArray<string>;
/**
* Getter/setter for activate Unicode version.
* FIXME: Should we go with this instead of get/SetOption?
* Getter/setter for active Unicode version.
*/
activeVersion: string;
}