+1
-1
@@ -66,6 +66,6 @@
|
|||||||
"webpack": "gulp webpack",
|
"webpack": "gulp webpack",
|
||||||
"watch": "concurrently --kill-others-on-fail --names \"lib,css\" \"tsc -w\" \"gulp watch-css\"",
|
"watch": "concurrently --kill-others-on-fail --names \"lib,css\" \"tsc -w\" \"gulp watch-css\"",
|
||||||
"watch-addons": "concurrently --kill-others-on-fail --names \"attach,fit,fullscreen,search,terminado,webLinks,winptyCompat,zmodem\" \"tsc -w -p ./src/addons/attach\" \"tsc -w -p ./src/addons/fit\" \"tsc -w -p ./src/addons/fullscreen\" \"tsc -w -p ./src/addons/search\" \"tsc -w -p ./src/addons/terminado\" \"tsc -w -p ./src/addons/webLinks\" \"tsc -w -p ./src/addons/winptyCompat\" \"tsc -w -p ./src/addons/zmodem\"",
|
"watch-addons": "concurrently --kill-others-on-fail --names \"attach,fit,fullscreen,search,terminado,webLinks,winptyCompat,zmodem\" \"tsc -w -p ./src/addons/attach\" \"tsc -w -p ./src/addons/fit\" \"tsc -w -p ./src/addons/fullscreen\" \"tsc -w -p ./src/addons/search\" \"tsc -w -p ./src/addons/terminado\" \"tsc -w -p ./src/addons/webLinks\" \"tsc -w -p ./src/addons/winptyCompat\" \"tsc -w -p ./src/addons/zmodem\"",
|
||||||
"layering": "tsc -p ./src/common"
|
"layering": "concurrently --kill-others-on-fail --names \"common,core\" \"tsc -p ./src/common\" \"tsc -p ./src/core\""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"pretty": true,
|
||||||
"types": [
|
"types": [
|
||||||
"../../node_modules/@types/mocha",
|
"../../node_modules/@types/mocha",
|
||||||
"../../"
|
"../../"
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ import { ICharset } from '../Types';
|
|||||||
* to be represented within the terminal with only 8-bit encoding. See ISO 2022
|
* to be represented within the terminal with only 8-bit encoding. See ISO 2022
|
||||||
* for a discussion on character sets. Only VT100 character sets are supported.
|
* for a discussion on character sets. Only VT100 character sets are supported.
|
||||||
*/
|
*/
|
||||||
export const CHARSETS: { [key: string]: ICharset } = {};
|
export const CHARSETS: { [key: string]: ICharset | null } = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default character set, US.
|
* The default character set, US.
|
||||||
*/
|
*/
|
||||||
export const DEFAULT_CHARSET: ICharset = CHARSETS['B'];
|
export const DEFAULT_CHARSET: ICharset | null = CHARSETS['B'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DEC Special Character and Line Drawing Set.
|
* DEC Special Character and Line Drawing Set.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import { assert } from 'chai';
|
import { assert } from 'chai';
|
||||||
import { evaluateKeyboardEvent } from './Keyboard';
|
import { evaluateKeyboardEvent } from './Keyboard';
|
||||||
import { IKeyboardResult } from '../Types';
|
import { IKeyboardResult } from '../Types';
|
||||||
|
import { IKeyboardEvent } from '../../common/Types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A helper function for testing which allows passing in a partial event and defaults will be filled
|
* A helper function for testing which allows passing in a partial event and defaults will be filled
|
||||||
@@ -20,12 +21,12 @@ function testEvaluateKeyboardEvent(partialEvent: {
|
|||||||
isMac?: boolean;
|
isMac?: boolean;
|
||||||
macOptionIsMeta?: boolean;
|
macOptionIsMeta?: boolean;
|
||||||
} = {}): IKeyboardResult {
|
} = {}): IKeyboardResult {
|
||||||
const event = {
|
const event: IKeyboardEvent = {
|
||||||
altKey: partialEvent.altKey || false,
|
altKey: partialEvent.altKey || false,
|
||||||
ctrlKey: partialEvent.ctrlKey || false,
|
ctrlKey: partialEvent.ctrlKey || false,
|
||||||
shiftKey: partialEvent.shiftKey || false,
|
shiftKey: partialEvent.shiftKey || false,
|
||||||
metaKey: partialEvent.metaKey || false,
|
metaKey: partialEvent.metaKey || false,
|
||||||
keyCode: partialEvent.keyCode !== undefined ? partialEvent.keyCode : undefined,
|
keyCode: partialEvent.keyCode !== undefined ? partialEvent.keyCode : 0,
|
||||||
key: partialEvent.key || '',
|
key: partialEvent.key || '',
|
||||||
type: partialEvent.type || ''
|
type: partialEvent.type || ''
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"lib": [
|
||||||
|
"es5"
|
||||||
|
],
|
||||||
|
"rootDir": ".",
|
||||||
|
"noEmit": true,
|
||||||
|
"strict": true,
|
||||||
|
"pretty": true,
|
||||||
|
"types": [
|
||||||
|
"../../node_modules/@types/mocha",
|
||||||
|
"../../"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"./**/*",
|
||||||
|
"../common/**/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user