Merge branch 'master' into master

This commit is contained in:
Charles Wei
2020-04-05 12:15:37 +08:00
committed by GitHub
42 changed files with 2456 additions and 2152 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ describe('InputHandler Integration Tests', function(): void {
});
(isChromium ? it : it.skip)('Pm = 2004, Set bracketed paste mode', async function(): Promise<any> {
await pollFor(page, () => simulatePaste('foo'), 'foo');
await page.evaluate(`window.term.write('\x1b[?2004h')`)
await page.evaluate(`window.term.write('\x1b[?2004h')`);
await pollFor(page, () => simulatePaste('bar'), '\x1b[200~bar\x1b[201~');
await page.evaluate(`window.term.write('\x1b[?2004l')`);
await pollFor(page, () => simulatePaste('baz'), 'baz');
+2 -2
View File
@@ -22,7 +22,7 @@ const cols = 260;
const rows = 50;
// Wheel events are hacked using private API that is only available in Chromium
const isChromium = false
const isChromium = false;
// for some reason shift gets not caught by selection manager on macos
const noShift = process.platform === 'darwin' ? false : true;
@@ -169,7 +169,7 @@ function evalButtonCode(code: number): any {
}
// parse a single mouse report
function parseReport(encoding: string, msg: number[]): { state: any; row: number; col: number; } | string {
function parseReport(encoding: string, msg: number[]): { state: any, row: number, col: number } | string {
let sReport: string;
let buttonCode: number;
let row: number;