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
+1 -2
View File
@@ -265,8 +265,7 @@ function initOptions(term: TerminalType): void {
fontWeightBold: ['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
logLevel: ['debug', 'info', 'warn', 'error', 'off'],
rendererType: ['dom', 'canvas'],
wordSeparator: null,
unicodeVersion: ['6', '11']
wordSeparator: null
};
const options = Object.keys((<any>term)._core.options);
const booleanOptions = [];
-5
View File
@@ -347,11 +347,6 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
this._windowsMode = undefined;
}
break;
case 'unicodeVersion':
if (this.unicodeService.activeVersion !== this.optionsService.options.unicodeVersion) {
this.unicodeService.activeVersion = this.optionsService.options.unicodeVersion;
}
break;
}
});
}
-1
View File
@@ -52,7 +52,6 @@ export const DEFAULT_OPTIONS: ITerminalOptions = Object.freeze({
screenKeys: false,
cancelEvents: false,
useFlowControl: false,
unicodeVersion: '6',
wordSeparator: ' ()[]{}\',:;"`'
});
-2
View File
@@ -238,7 +238,6 @@ export interface IPartialTerminalOptions {
scrollSensitivity?: number;
tabStopWidth?: number;
theme?: ITheme;
unicodeVersion?: string;
windowsMode?: boolean;
wordSeparator?: string;
}
@@ -273,7 +272,6 @@ export interface ITerminalOptions {
scrollSensitivity: number;
tabStopWidth: number;
theme: ITheme;
unicodeVersion: string;
windowsMode: boolean;
wordSeparator: string;
+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;
}