@@ -12,7 +12,7 @@ import { IDisposable } from 'xterm';
|
|||||||
|
|
||||||
const MAX_ROWS_TO_READ = 20;
|
const MAX_ROWS_TO_READ = 20;
|
||||||
|
|
||||||
enum BoundaryPosition {
|
const enum BoundaryPosition {
|
||||||
TOP,
|
TOP,
|
||||||
BOTTOM
|
BOTTOM
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -150,7 +150,7 @@ csiStateHandler['s'] = (handler, params) => handler.saveCursor(params);
|
|||||||
csiStateHandler['u'] = (handler, params) => handler.restoreCursor(params);
|
csiStateHandler['u'] = (handler, params) => handler.restoreCursor(params);
|
||||||
csiStateHandler[C0.CAN] = (handler, params, prefix, postfix, parser) => parser.setState(ParserState.NORMAL);
|
csiStateHandler[C0.CAN] = (handler, params, prefix, postfix, parser) => parser.setState(ParserState.NORMAL);
|
||||||
|
|
||||||
export enum ParserState {
|
export const enum ParserState {
|
||||||
NORMAL = 0,
|
NORMAL = 0,
|
||||||
ESCAPED = 1,
|
ESCAPED = 1,
|
||||||
CSI_PARAM = 2,
|
CSI_PARAM = 2,
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ interface IWordPosition {
|
|||||||
/**
|
/**
|
||||||
* A selection mode, this drives how the selection behaves on mouse move.
|
* A selection mode, this drives how the selection behaves on mouse move.
|
||||||
*/
|
*/
|
||||||
enum SelectionMode {
|
const enum SelectionMode {
|
||||||
NORMAL,
|
NORMAL,
|
||||||
WORD,
|
WORD,
|
||||||
LINE
|
LINE
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ export type LineData = CharData[];
|
|||||||
export type LinkMatcherHandler = (event: MouseEvent, uri: string) => void;
|
export type LinkMatcherHandler = (event: MouseEvent, uri: string) => void;
|
||||||
export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void;
|
export type LinkMatcherValidationCallback = (uri: string, callback: (isValid: boolean) => void) => void;
|
||||||
|
|
||||||
export enum LinkHoverEventTypes {
|
export const enum LinkHoverEventTypes {
|
||||||
HOVER = 'linkhover',
|
HOVER = 'linkhover',
|
||||||
TOOLTIP = 'linktooltip',
|
TOOLTIP = 'linktooltip',
|
||||||
LEAVE = 'linkleave'
|
LEAVE = 'linkleave'
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import { ITerminal, ICircularList, LineData } from '../Types';
|
import { ITerminal, ICircularList, LineData } from '../Types';
|
||||||
import { C0 } from '../EscapeSequences';
|
import { C0 } from '../EscapeSequences';
|
||||||
|
|
||||||
enum Direction {
|
const enum Direction {
|
||||||
UP = 'A',
|
UP = 'A',
|
||||||
DOWN = 'B',
|
DOWN = 'B',
|
||||||
RIGHT = 'C',
|
RIGHT = 'C',
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { IColorSet } from '../shared/Types';
|
|||||||
/**
|
/**
|
||||||
* Flags used to render terminal text properly.
|
* Flags used to render terminal text properly.
|
||||||
*/
|
*/
|
||||||
export enum FLAGS {
|
export const enum FLAGS {
|
||||||
BOLD = 1,
|
BOLD = 1,
|
||||||
UNDERLINE = 2,
|
UNDERLINE = 2,
|
||||||
BLINK = 4,
|
BLINK = 4,
|
||||||
|
|||||||
@@ -92,6 +92,9 @@
|
|||||||
"naming-convention": [
|
"naming-convention": [
|
||||||
true,
|
true,
|
||||||
{"type": "property", "modifiers": ["public", "static", "const"], "format": "UPPER_CASE"}
|
{"type": "property", "modifiers": ["public", "static", "const"], "format": "UPPER_CASE"}
|
||||||
|
],
|
||||||
|
"prefer-const-enum": [
|
||||||
|
true
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user