mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
remove unicodeVersion from options
This commit is contained in:
+1
-2
@@ -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 = [];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -52,7 +52,6 @@ export const DEFAULT_OPTIONS: ITerminalOptions = Object.freeze({
|
||||
screenKeys: false,
|
||||
cancelEvents: false,
|
||||
useFlowControl: false,
|
||||
unicodeVersion: '6',
|
||||
wordSeparator: ' ()[]{}\',:;"`'
|
||||
});
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Vendored
+10
-10
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user