Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test pr #1

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 2 additions & 33 deletions src/browser/Terminal.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
/**
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
* @license MIT
*
* Originally forked from (with the author's permission):
* Fabrice Bellard's javascript vt100 for jslinux:
* http://bellard.org/jslinux/
* Copyright (c) 2011 Fabrice Bellard
* The original design remains. The terminal itself
* has been extended to include xterm CSI codes, among
* other features.
*
* Terminal Emulation References:
* http://vt100.net/
* http://invisible-island.net/xterm/ctlseqs/ctlseqs.txt
* http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
* http://invisible-island.net/vttest/
* http://www.inwap.com/pdp10/ansicode.txt
* http://linux.die.net/man/4/console_codes
* http://linux.die.net/man/7/urxvt
*/

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thread 1


import { copyHandler, handlePasteEvent, moveTextAreaUnderMouseCursor, paste, rightClickHandler } from 'browser/Clipboard';
import { addDisposableDomListener } from 'browser/Lifecycle';
Expand All @@ -33,19 +14,7 @@
import { CompositionHelper } from 'browser/input/CompositionHelper';
import { DomRenderer } from 'browser/renderer/dom/DomRenderer';
import { IRenderer } from 'browser/renderer/shared/Types';
import { CharSizeService } from 'browser/services/CharSizeService';
import { CharacterJoinerService } from 'browser/services/CharacterJoinerService';
import { CoreBrowserService } from 'browser/services/CoreBrowserService';
import { MouseService } from 'browser/services/MouseService';
import { RenderService } from 'browser/services/RenderService';
import { SelectionService } from 'browser/services/SelectionService';
import { ICharSizeService, ICharacterJoinerService, ICoreBrowserService, IMouseService, IRenderService, ISelectionService, IThemeService } from 'browser/services/Services';
import { ThemeService } from 'browser/services/ThemeService';
import { color, rgba } from 'common/Color';
import { CoreTerminal } from 'common/CoreTerminal';
import { EventEmitter, IEvent, forwardEvent } from 'common/EventEmitter';
import { MutableDisposable, toDisposable } from 'common/Lifecycle';
import * as Browser from 'common/Platform';
import { CharSizeService }form';
import { ColorRequestType, CoreMouseAction, CoreMouseButton, CoreMouseEventType, IColorEvent, ITerminalOptions, KeyboardResultType, ScrollSource, SpecialColorIndex } from 'common/Types';
import { DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
import { IBuffer } from 'common/buffer/Types';
Expand Down Expand Up @@ -90,34 +59,34 @@
* the keypress event should not trigger a data event but should still print to the textarea so
* screen readers will announce it.
*/
private _keyDownHandled: boolean = false;

Check failure on line 62 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.

/**
* Records whether a keydown event has occured since the last keyup event, i.e. whether a key
* is currently "pressed".
*/
private _keyDownSeen: boolean = false;

Check failure on line 68 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.

/**
* Records whether the keypress event has already been handled and triggered a data event, if so
* the input event should not trigger a data event but should still print to the textarea so
* screen readers will announce it.
*/
private _keyPressHandled: boolean = false;

Check failure on line 75 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.

/**
* Records whether there has been a keydown event for a dead key without a corresponding keydown
* event for the composed/alternative character. If we cancel the keydown event for the dead key,
* no events will be emitted for the final character.
*/
private _unprocessedDeadKey: boolean = false;

Check failure on line 82 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.

public linkifier2: ILinkifier2;

Check failure on line 84 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.
public viewport: IViewport | undefined;

Check failure on line 85 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.
private _compositionHelper: ICompositionHelper | undefined;

Check failure on line 86 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.
private _accessibilityManager: MutableDisposable<AccessibilityManager> = this.register(new MutableDisposable());

Check failure on line 87 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.

private readonly _onCursorMove = this.register(new EventEmitter<void>());

Check failure on line 89 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.

Check failure on line 89 in src/browser/Terminal.ts

View workflow job for this annotation

GitHub Actions / build

Declaration or statement expected.
public readonly onCursorMove = this._onCursorMove.event;
private readonly _onKey = this.register(new EventEmitter<{ key: string, domEvent: KeyboardEvent }>());
public readonly onKey = this._onKey.event;
Expand Down
Loading