@@ -248,10 +248,7 @@ function initOptions(term: TerminalType): void {
|
|||||||
// Internal only options
|
// Internal only options
|
||||||
'cancelEvents',
|
'cancelEvents',
|
||||||
'convertEol',
|
'convertEol',
|
||||||
'handler',
|
|
||||||
'screenKeys',
|
|
||||||
'termName',
|
'termName',
|
||||||
'useFlowControl',
|
|
||||||
// Complex option
|
// Complex option
|
||||||
'theme'
|
'theme'
|
||||||
];
|
];
|
||||||
|
|||||||
Vendored
-3
@@ -220,10 +220,7 @@ export interface ITerminalOptions extends IPublicTerminalOptions {
|
|||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
cancelEvents?: boolean;
|
cancelEvents?: boolean;
|
||||||
convertEol?: boolean;
|
convertEol?: boolean;
|
||||||
handler?: (data: string) => void;
|
|
||||||
screenKeys?: boolean;
|
|
||||||
termName?: string;
|
termName?: string;
|
||||||
useFlowControl?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IBrowser {
|
export interface IBrowser {
|
||||||
|
|||||||
@@ -49,9 +49,7 @@ export const DEFAULT_OPTIONS: ITerminalOptions = Object.freeze({
|
|||||||
|
|
||||||
convertEol: false,
|
convertEol: false,
|
||||||
termName: 'xterm',
|
termName: 'xterm',
|
||||||
screenKeys: false,
|
|
||||||
cancelEvents: false,
|
cancelEvents: false,
|
||||||
useFlowControl: false,
|
|
||||||
wordSeparator: ' ()[]{}\',"`'
|
wordSeparator: ' ()[]{}\',"`'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -278,9 +278,7 @@ export interface ITerminalOptions {
|
|||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
cancelEvents: boolean;
|
cancelEvents: boolean;
|
||||||
convertEol: boolean;
|
convertEol: boolean;
|
||||||
screenKeys: boolean;
|
|
||||||
termName: string;
|
termName: string;
|
||||||
useFlowControl: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ITheme {
|
export interface ITheme {
|
||||||
|
|||||||
@@ -146,10 +146,8 @@ export class Terminal implements ITerminalApi {
|
|||||||
this._core.paste(data);
|
this._core.paste(data);
|
||||||
}
|
}
|
||||||
public getOption(key: 'bellSound' | 'bellStyle' | 'cursorStyle' | 'fontFamily' | 'fontWeight' | 'fontWeightBold' | 'logLevel' | 'rendererType' | 'termName' | 'wordSeparator'): string;
|
public getOption(key: 'bellSound' | 'bellStyle' | 'cursorStyle' | 'fontFamily' | 'fontWeight' | 'fontWeightBold' | 'logLevel' | 'rendererType' | 'termName' | 'wordSeparator'): string;
|
||||||
public getOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'rightClickSelectsWord' | 'popOnBell' | 'screenKeys' | 'useFlowControl' | 'visualBell'): boolean;
|
public getOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'rightClickSelectsWord' | 'popOnBell' | 'visualBell'): boolean;
|
||||||
public getOption(key: 'colors'): string[];
|
|
||||||
public getOption(key: 'cols' | 'fontSize' | 'letterSpacing' | 'lineHeight' | 'rows' | 'tabStopWidth' | 'scrollback'): number;
|
public getOption(key: 'cols' | 'fontSize' | 'letterSpacing' | 'lineHeight' | 'rows' | 'tabStopWidth' | 'scrollback'): number;
|
||||||
public getOption(key: 'handler'): (data: string) => void;
|
|
||||||
public getOption(key: string): any;
|
public getOption(key: string): any;
|
||||||
public getOption(key: any): any {
|
public getOption(key: any): any {
|
||||||
return this._core.optionsService.getOption(key);
|
return this._core.optionsService.getOption(key);
|
||||||
@@ -159,10 +157,8 @@ export class Terminal implements ITerminalApi {
|
|||||||
public setOption(key: 'logLevel', value: 'debug' | 'info' | 'warn' | 'error' | 'off'): void;
|
public setOption(key: 'logLevel', value: 'debug' | 'info' | 'warn' | 'error' | 'off'): void;
|
||||||
public setOption(key: 'bellStyle', value: 'none' | 'visual' | 'sound' | 'both'): void;
|
public setOption(key: 'bellStyle', value: 'none' | 'visual' | 'sound' | 'both'): void;
|
||||||
public setOption(key: 'cursorStyle', value: 'block' | 'underline' | 'bar'): void;
|
public setOption(key: 'cursorStyle', value: 'block' | 'underline' | 'bar'): void;
|
||||||
public setOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'rightClickSelectsWord' | 'popOnBell' | 'screenKeys' | 'useFlowControl' | 'visualBell', value: boolean): void;
|
public setOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'rightClickSelectsWord' | 'popOnBell' | 'visualBell', value: boolean): void;
|
||||||
public setOption(key: 'colors', value: string[]): void;
|
|
||||||
public setOption(key: 'fontSize' | 'letterSpacing' | 'lineHeight' | 'tabStopWidth' | 'scrollback', value: number): void;
|
public setOption(key: 'fontSize' | 'letterSpacing' | 'lineHeight' | 'tabStopWidth' | 'scrollback', value: number): void;
|
||||||
public setOption(key: 'handler', value: (data: string) => void): void;
|
|
||||||
public setOption(key: 'theme', value: ITheme): void;
|
public setOption(key: 'theme', value: ITheme): void;
|
||||||
public setOption(key: 'cols' | 'rows', value: number): void;
|
public setOption(key: 'cols' | 'rows', value: number): void;
|
||||||
public setOption(key: string, value: any): void;
|
public setOption(key: string, value: any): void;
|
||||||
|
|||||||
Vendored
+3
-25
@@ -748,22 +748,12 @@ declare module 'xterm' {
|
|||||||
* Retrieves an option's value from the terminal.
|
* Retrieves an option's value from the terminal.
|
||||||
* @param key The option key.
|
* @param key The option key.
|
||||||
*/
|
*/
|
||||||
getOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'rightClickSelectsWord' | 'popOnBell' | 'screenKeys' | 'useFlowControl' | 'visualBell' | 'windowsMode'): boolean;
|
getOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'rightClickSelectsWord' | 'popOnBell' | 'visualBell' | 'windowsMode'): boolean;
|
||||||
/**
|
|
||||||
* Retrieves an option's value from the terminal.
|
|
||||||
* @param key The option key.
|
|
||||||
*/
|
|
||||||
getOption(key: 'colors'): string[];
|
|
||||||
/**
|
/**
|
||||||
* Retrieves an option's value from the terminal.
|
* Retrieves an option's value from the terminal.
|
||||||
* @param key The option key.
|
* @param key The option key.
|
||||||
*/
|
*/
|
||||||
getOption(key: 'cols' | 'fontSize' | 'letterSpacing' | 'lineHeight' | 'rows' | 'tabStopWidth' | 'scrollback'): number;
|
getOption(key: 'cols' | 'fontSize' | 'letterSpacing' | 'lineHeight' | 'rows' | 'tabStopWidth' | 'scrollback'): number;
|
||||||
/**
|
|
||||||
* Retrieves an option's value from the terminal.
|
|
||||||
* @param key The option key.
|
|
||||||
*/
|
|
||||||
getOption(key: 'handler'): (data: string) => void;
|
|
||||||
/**
|
/**
|
||||||
* Retrieves an option's value from the terminal.
|
* Retrieves an option's value from the terminal.
|
||||||
* @param key The option key.
|
* @param key The option key.
|
||||||
@@ -805,25 +795,13 @@ declare module 'xterm' {
|
|||||||
* @param key The option key.
|
* @param key The option key.
|
||||||
* @param value The option value.
|
* @param value The option value.
|
||||||
*/
|
*/
|
||||||
setOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'popOnBell' | 'rightClickSelectsWord' | 'screenKeys' | 'useFlowControl' | 'visualBell' | 'windowsMode', value: boolean): void;
|
setOption(key: 'allowTransparency' | 'cancelEvents' | 'convertEol' | 'cursorBlink' | 'disableStdin' | 'macOptionIsMeta' | 'popOnBell' | 'rightClickSelectsWord' | 'visualBell' | 'windowsMode', value: boolean): void;
|
||||||
/**
|
|
||||||
* Sets an option on the terminal.
|
|
||||||
* @param key The option key.
|
|
||||||
* @param value The option value.
|
|
||||||
*/
|
|
||||||
setOption(key: 'colors', value: string[]): void;
|
|
||||||
/**
|
/**
|
||||||
* Sets an option on the terminal.
|
* Sets an option on the terminal.
|
||||||
* @param key The option key.
|
* @param key The option key.
|
||||||
* @param value The option value.
|
* @param value The option value.
|
||||||
*/
|
*/
|
||||||
setOption(key: 'fontSize' | 'letterSpacing' | 'lineHeight' | 'tabStopWidth' | 'scrollback', value: number): void;
|
setOption(key: 'fontSize' | 'letterSpacing' | 'lineHeight' | 'tabStopWidth' | 'scrollback', value: number): void;
|
||||||
/**
|
|
||||||
* Sets an option on the terminal.
|
|
||||||
* @param key The option key.
|
|
||||||
* @param value The option value.
|
|
||||||
*/
|
|
||||||
setOption(key: 'handler', value: (data: string) => void): void;
|
|
||||||
/**
|
/**
|
||||||
* Sets an option on the terminal.
|
* Sets an option on the terminal.
|
||||||
* @param key The option key.
|
* @param key The option key.
|
||||||
@@ -1171,7 +1149,7 @@ declare module 'xterm' {
|
|||||||
* String indicating the Unicode version provided.
|
* String indicating the Unicode version provided.
|
||||||
*/
|
*/
|
||||||
readonly version: string;
|
readonly version: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unicode version dependent wcwidth implementation.
|
* Unicode version dependent wcwidth implementation.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user