@xterm/xterm 6.1.0-beta.256 → 6.1.0-beta.257
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/xterm.js +1 -1
- package/lib/xterm.js.map +1 -1
- package/lib/xterm.mjs +1 -1
- package/lib/xterm.mjs.map +1 -1
- package/package.json +5 -5
- package/src/browser/AccessibilityManager.ts +8 -8
- package/src/browser/Clipboard.ts +2 -2
- package/src/browser/ColorContrastCache.ts +3 -3
- package/src/browser/CoreBrowserTerminal.ts +34 -34
- package/src/browser/Dom.ts +2 -2
- package/src/browser/Linkifier.ts +6 -6
- package/src/browser/OscLinkProvider.ts +5 -5
- package/src/browser/RenderDebouncer.ts +2 -2
- package/src/browser/TimeBasedDebouncer.ts +1 -1
- package/src/browser/Types.ts +4 -4
- package/src/browser/Viewport.ts +10 -10
- package/src/browser/decorations/BufferDecorationRenderer.ts +3 -3
- package/src/browser/decorations/ColorZoneStore.ts +1 -1
- package/src/browser/decorations/OverviewRulerRenderer.ts +4 -4
- package/src/browser/input/CompositionHelper.ts +3 -3
- package/src/browser/input/MoveToCell.ts +2 -2
- package/src/browser/public/Terminal.ts +10 -10
- package/src/browser/renderer/dom/DomRenderer.ts +14 -14
- package/src/browser/renderer/dom/DomRendererRowFactory.ts +12 -12
- package/src/browser/renderer/dom/WidthCache.ts +3 -3
- package/src/browser/renderer/shared/RendererUtils.ts +1 -1
- package/src/browser/renderer/shared/SelectionRenderModel.ts +2 -2
- package/src/browser/renderer/shared/TextBlinkStateManager.ts +3 -3
- package/src/browser/renderer/shared/Types.ts +3 -3
- package/src/browser/scrollable/abstractScrollbar.ts +1 -1
- package/src/browser/scrollable/globalPointerMoveMonitor.ts +1 -1
- package/src/browser/scrollable/mouseEvent.ts +1 -1
- package/src/browser/scrollable/scrollable.ts +2 -2
- package/src/browser/scrollable/scrollableElement.ts +4 -4
- package/src/browser/scrollable/scrollbarArrow.ts +1 -1
- package/src/browser/scrollable/scrollbarVisibilityController.ts +2 -2
- package/src/browser/scrollable/touch.ts +1 -1
- package/src/browser/scrollable/widget.ts +1 -1
- package/src/browser/selection/SelectionModel.ts +1 -1
- package/src/browser/services/CharSizeService.ts +4 -4
- package/src/browser/services/CharacterJoinerService.ts +7 -7
- package/src/browser/services/CoreBrowserService.ts +3 -3
- package/src/browser/services/KeyboardService.ts +7 -7
- package/src/browser/services/LinkProviderService.ts +3 -3
- package/src/browser/services/MouseCoordsService.ts +3 -3
- package/src/browser/services/MouseService.ts +6 -6
- package/src/browser/services/RenderService.ts +8 -8
- package/src/browser/services/SelectionService.ts +14 -14
- package/src/browser/services/Services.ts +6 -6
- package/src/browser/services/ThemeService.ts +8 -8
- package/src/common/Async.ts +1 -1
- package/src/common/CircularList.ts +3 -3
- package/src/common/Color.ts +1 -1
- package/src/common/CoreTerminal.ts +18 -18
- package/src/common/Event.ts +1 -1
- package/src/common/InputHandler.ts +20 -20
- package/src/common/SortedList.ts +2 -2
- package/src/common/TaskQueue.ts +1 -1
- package/src/common/Types.ts +6 -6
- package/src/common/Version.ts +1 -1
- package/src/common/WindowsMode.ts +2 -2
- package/src/common/buffer/AttributeData.ts +2 -2
- package/src/common/buffer/Buffer.ts +14 -14
- package/src/common/buffer/BufferLine.ts +6 -6
- package/src/common/buffer/BufferLineStringCache.ts +3 -3
- package/src/common/buffer/BufferReflow.ts +3 -3
- package/src/common/buffer/BufferSet.ts +6 -6
- package/src/common/buffer/CellData.ts +4 -4
- package/src/common/buffer/Marker.ts +3 -3
- package/src/common/buffer/Types.ts +2 -2
- package/src/common/data/Charsets.ts +1 -1
- package/src/common/input/Keyboard.ts +2 -2
- package/src/common/input/KittyKeyboard.ts +2 -2
- package/src/common/input/UnicodeV6.ts +2 -2
- package/src/common/input/Win32InputMode.ts +2 -2
- package/src/common/input/WriteBuffer.ts +3 -3
- package/src/common/parser/ApcParser.ts +5 -5
- package/src/common/parser/DcsParser.ts +6 -6
- package/src/common/parser/EscapeSequenceParser.ts +8 -8
- package/src/common/parser/OscParser.ts +5 -5
- package/src/common/parser/Params.ts +1 -1
- package/src/common/parser/Types.ts +2 -2
- package/src/common/public/BufferApiView.ts +3 -3
- package/src/common/public/BufferLineApiView.ts +2 -2
- package/src/common/public/BufferNamespaceApi.ts +4 -4
- package/src/common/public/ParserApi.ts +2 -2
- package/src/common/public/UnicodeApi.ts +1 -1
- package/src/common/services/BufferService.ts +6 -6
- package/src/common/services/CharsetService.ts +2 -2
- package/src/common/services/CoreService.ts +4 -4
- package/src/common/services/DecorationService.ts +8 -8
- package/src/common/services/InstantiationService.ts +2 -2
- package/src/common/services/LogService.ts +2 -2
- package/src/common/services/MouseStateService.ts +4 -4
- package/src/common/services/OptionsService.ts +5 -5
- package/src/common/services/OscLinkService.ts +2 -2
- package/src/common/services/ServiceRegistry.ts +1 -1
- package/src/common/services/Services.ts +4 -4
- package/src/common/services/UnicodeService.ts +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/xterm",
|
|
3
3
|
"description": "Full xterm terminal, in your browser",
|
|
4
|
-
"version": "6.1.0-beta.
|
|
4
|
+
"version": "6.1.0-beta.257",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"test-integration-firefox": "node ./bin/test_integration.js --workers=75% \"--project=FirefoxStable\"",
|
|
62
62
|
"test-integration-webkit": "node ./bin/test_integration.js --workers=75% \"--project=WebKit\"",
|
|
63
63
|
"test-integration-debug": "node ./bin/test_integration.js --workers=1 --headed --timeout=30000",
|
|
64
|
-
"benchmark": "
|
|
65
|
-
"benchmark-baseline": "
|
|
66
|
-
"benchmark-eval": "
|
|
64
|
+
"benchmark": "xterm-benchmark -r 5 -c test/benchmark/benchmark.json",
|
|
65
|
+
"benchmark-baseline": "xterm-benchmark -r 5 -c test/benchmark/benchmark.json --baseline out-test/benchmark/*benchmark.js",
|
|
66
|
+
"benchmark-eval": "xterm-benchmark -r 5 -c test/benchmark/benchmark.json --eval out-test/benchmark/*benchmark.js",
|
|
67
67
|
"clean": "rm -rf lib out addons/*/lib addons/*/out",
|
|
68
68
|
"vtfeatures": "node bin/extract_vtfeatures.js src/*/*.ts src/*/*/*.ts src/*.ts addons/**/src/*.ts",
|
|
69
69
|
"prepackage": "npm run build",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"ws": "^8.20.0",
|
|
113
113
|
"xterm-benchmark": "^0.3.2"
|
|
114
114
|
},
|
|
115
|
-
"commit": "
|
|
115
|
+
"commit": "04a0b7347caad5c95bac808272a8d4018e4fe125"
|
|
116
116
|
}
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import * as Strings from '
|
|
7
|
-
import { ITerminal, IRenderDebouncer } from '
|
|
8
|
-
import { TimeBasedDebouncer } from '
|
|
9
|
-
import { Disposable, toDisposable } from 'common/Lifecycle';
|
|
10
|
-
import { ICoreBrowserService, IRenderService } from '
|
|
11
|
-
import { IBuffer } from 'common/buffer/Types';
|
|
12
|
-
import { IInstantiationService } from 'common/services/Services';
|
|
13
|
-
import { addDisposableListener } from '
|
|
6
|
+
import * as Strings from './LocalizableStrings';
|
|
7
|
+
import { ITerminal, IRenderDebouncer } from './Types';
|
|
8
|
+
import { TimeBasedDebouncer } from './TimeBasedDebouncer';
|
|
9
|
+
import { Disposable, toDisposable } from '../common/Lifecycle';
|
|
10
|
+
import { ICoreBrowserService, IRenderService } from './services/Services';
|
|
11
|
+
import { IBuffer } from '../common/buffer/Types';
|
|
12
|
+
import { IInstantiationService } from '../common/services/Services';
|
|
13
|
+
import { addDisposableListener } from './Dom';
|
|
14
14
|
|
|
15
15
|
const enum Constants {
|
|
16
16
|
MAX_ROWS_TO_READ = 20
|
package/src/browser/Clipboard.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ISelectionService } from '
|
|
7
|
-
import { ICoreService, IOptionsService } from 'common/services/Services';
|
|
6
|
+
import { ISelectionService } from './services/Services';
|
|
7
|
+
import { ICoreService, IOptionsService } from '../common/services/Services';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Prepares text to be pasted into the terminal by normalizing the line endings
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IColorContrastCache } from '
|
|
7
|
-
import { IColor } from 'common/Types';
|
|
8
|
-
import { TwoKeyMap } from 'common/MultiKeyMap';
|
|
6
|
+
import { IColorContrastCache } from './Types';
|
|
7
|
+
import { IColor } from '../common/Types';
|
|
8
|
+
import { TwoKeyMap } from '../common/MultiKeyMap';
|
|
9
9
|
|
|
10
10
|
export class ColorContrastCache implements IColorContrastCache {
|
|
11
11
|
private _color: TwoKeyMap</* bg */number, /* fg */number, IColor | null> = new TwoKeyMap();
|
|
@@ -22,43 +22,43 @@
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
import { IDecoration, IDecorationOptions, IDisposable, ILinkProvider, IMarker, IRenderDimensions as IRenderDimensionsApi } from '@xterm/xterm';
|
|
25
|
-
import { copyHandler, handlePasteEvent, moveTextAreaUnderMouseCursor, paste, rightClickHandler } from '
|
|
26
|
-
import * as Strings from '
|
|
27
|
-
import { OscLinkProvider } from '
|
|
28
|
-
import { CharacterJoinerHandler, CustomKeyEventHandler, CustomWheelEventHandler, IBrowser, IBufferRange, ICompositionHelper, ILinkifier2, ITerminal } from '
|
|
29
|
-
import { Viewport } from '
|
|
30
|
-
import { BufferDecorationRenderer } from '
|
|
31
|
-
import { OverviewRulerRenderer } from '
|
|
32
|
-
import { CompositionHelper } from '
|
|
33
|
-
import { DomRenderer } from '
|
|
34
|
-
import { IRenderer } from '
|
|
35
|
-
import { CharSizeService } from '
|
|
36
|
-
import { CharacterJoinerService } from '
|
|
37
|
-
import { CoreBrowserService } from '
|
|
38
|
-
import { LinkProviderService } from '
|
|
39
|
-
import { MouseCoordsService } from '
|
|
40
|
-
import { MouseEventCssClasses, MouseService } from '
|
|
41
|
-
import { RenderService } from '
|
|
42
|
-
import { SelectionService } from '
|
|
43
|
-
import { ICharSizeService, ICharacterJoinerService, ICoreBrowserService, IKeyboardService, ILinkProviderService, IMouseCoordsService, IMouseService, IRenderService, ISelectionService, IThemeService } from '
|
|
44
|
-
import { ThemeService } from '
|
|
45
|
-
import { KeyboardService } from '
|
|
46
|
-
import { channels, color, rgb } from 'common/Color';
|
|
47
|
-
import { CoreTerminal } from 'common/CoreTerminal';
|
|
48
|
-
import * as Browser from 'common/Platform';
|
|
49
|
-
import { ColorRequestType, IColorEvent, ITerminalOptions, KeyboardResultType, SpecialColorIndex } from 'common/Types';
|
|
50
|
-
import { DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
|
|
51
|
-
import { IBuffer } from 'common/buffer/Types';
|
|
52
|
-
import { C0, C1ESCAPED } from 'common/data/EscapeSequences';
|
|
53
|
-
import { toRgbString } from 'common/input/XParseColor';
|
|
54
|
-
import { DecorationService } from 'common/services/DecorationService';
|
|
55
|
-
import { IDecorationService } from 'common/services/Services';
|
|
25
|
+
import { copyHandler, handlePasteEvent, moveTextAreaUnderMouseCursor, paste, rightClickHandler } from './Clipboard';
|
|
26
|
+
import * as Strings from './LocalizableStrings';
|
|
27
|
+
import { OscLinkProvider } from './OscLinkProvider';
|
|
28
|
+
import { CharacterJoinerHandler, CustomKeyEventHandler, CustomWheelEventHandler, IBrowser, IBufferRange, ICompositionHelper, ILinkifier2, ITerminal } from './Types';
|
|
29
|
+
import { Viewport } from './Viewport';
|
|
30
|
+
import { BufferDecorationRenderer } from './decorations/BufferDecorationRenderer';
|
|
31
|
+
import { OverviewRulerRenderer } from './decorations/OverviewRulerRenderer';
|
|
32
|
+
import { CompositionHelper } from './input/CompositionHelper';
|
|
33
|
+
import { DomRenderer } from './renderer/dom/DomRenderer';
|
|
34
|
+
import { IRenderer } from './renderer/shared/Types';
|
|
35
|
+
import { CharSizeService } from './services/CharSizeService';
|
|
36
|
+
import { CharacterJoinerService } from './services/CharacterJoinerService';
|
|
37
|
+
import { CoreBrowserService } from './services/CoreBrowserService';
|
|
38
|
+
import { LinkProviderService } from './services/LinkProviderService';
|
|
39
|
+
import { MouseCoordsService } from './services/MouseCoordsService';
|
|
40
|
+
import { MouseEventCssClasses, MouseService } from './services/MouseService';
|
|
41
|
+
import { RenderService } from './services/RenderService';
|
|
42
|
+
import { SelectionService } from './services/SelectionService';
|
|
43
|
+
import { ICharSizeService, ICharacterJoinerService, ICoreBrowserService, IKeyboardService, ILinkProviderService, IMouseCoordsService, IMouseService, IRenderService, ISelectionService, IThemeService } from './services/Services';
|
|
44
|
+
import { ThemeService } from './services/ThemeService';
|
|
45
|
+
import { KeyboardService } from './services/KeyboardService';
|
|
46
|
+
import { channels, color, rgb } from '../common/Color';
|
|
47
|
+
import { CoreTerminal } from '../common/CoreTerminal';
|
|
48
|
+
import * as Browser from '../common/Platform';
|
|
49
|
+
import { ColorRequestType, IColorEvent, ITerminalOptions, KeyboardResultType, SpecialColorIndex } from '../common/Types';
|
|
50
|
+
import { DEFAULT_ATTR_DATA } from '../common/buffer/BufferLine';
|
|
51
|
+
import { IBuffer } from '../common/buffer/Types';
|
|
52
|
+
import { C0, C1ESCAPED } from '../common/data/EscapeSequences';
|
|
53
|
+
import { toRgbString } from '../common/input/XParseColor';
|
|
54
|
+
import { DecorationService } from '../common/services/DecorationService';
|
|
55
|
+
import { IDecorationService } from '../common/services/Services';
|
|
56
56
|
import { WindowsOptionsReportType } from '../common/InputHandler';
|
|
57
57
|
import { AccessibilityManager } from './AccessibilityManager';
|
|
58
58
|
import { Linkifier } from './Linkifier';
|
|
59
|
-
import { Emitter, EventUtils, type IEvent } from 'common/Event';
|
|
60
|
-
import { addDisposableListener } from '
|
|
61
|
-
import { MutableDisposable, toDisposable } from 'common/Lifecycle';
|
|
59
|
+
import { Emitter, EventUtils, type IEvent } from '../common/Event';
|
|
60
|
+
import { addDisposableListener } from './Dom';
|
|
61
|
+
import { MutableDisposable, toDisposable } from '../common/Lifecycle';
|
|
62
62
|
|
|
63
63
|
export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
|
|
64
64
|
public textarea: HTMLTextAreaElement | undefined;
|
package/src/browser/Dom.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* Minimal DOM helpers for xterm.js browser code.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { IntervalTimer } from 'common/Async';
|
|
9
|
-
import { IDisposable } from 'common/Lifecycle';
|
|
8
|
+
import { IntervalTimer } from '../common/Async';
|
|
9
|
+
import { IDisposable } from '../common/Lifecycle';
|
|
10
10
|
|
|
11
11
|
export function getWindow(e: Node | UIEvent | undefined | null): Window {
|
|
12
12
|
const candidateNode = e as Node | undefined | null;
|
package/src/browser/Linkifier.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IBufferCellPosition, ILink, ILinkDecorations, ILinkWithState, ILinkifier2, ILinkifierEvent } from '
|
|
7
|
-
import { Disposable, dispose, toDisposable } from 'common/Lifecycle';
|
|
8
|
-
import { IDisposable } from 'common/Types';
|
|
9
|
-
import { IBufferService } from 'common/services/Services';
|
|
6
|
+
import { IBufferCellPosition, ILink, ILinkDecorations, ILinkWithState, ILinkifier2, ILinkifierEvent } from './Types';
|
|
7
|
+
import { Disposable, dispose, toDisposable } from '../common/Lifecycle';
|
|
8
|
+
import { IDisposable } from '../common/Types';
|
|
9
|
+
import { IBufferService } from '../common/services/Services';
|
|
10
10
|
import { ILinkProviderService, IMouseCoordsService, IRenderService } from './services/Services';
|
|
11
|
-
import { Emitter } from 'common/Event';
|
|
12
|
-
import { addDisposableListener } from '
|
|
11
|
+
import { Emitter } from '../common/Event';
|
|
12
|
+
import { addDisposableListener } from './Dom';
|
|
13
13
|
|
|
14
14
|
export class Linkifier extends Disposable implements ILinkifier2 {
|
|
15
15
|
public get currentLink(): ILinkWithState | undefined { return this._currentLink; }
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IBufferRange, ILink } from '
|
|
7
|
-
import { ILinkProvider } from '
|
|
8
|
-
import { CellData } from 'common/buffer/CellData';
|
|
9
|
-
import { IBufferLine } from 'common/Types';
|
|
10
|
-
import { IBufferService, IOptionsService, IOscLinkService } from 'common/services/Services';
|
|
6
|
+
import { IBufferRange, ILink } from './Types';
|
|
7
|
+
import { ILinkProvider } from './services/Services';
|
|
8
|
+
import { CellData } from '../common/buffer/CellData';
|
|
9
|
+
import { IBufferLine } from '../common/Types';
|
|
10
|
+
import { IBufferService, IOptionsService, IOscLinkService } from '../common/services/Services';
|
|
11
11
|
|
|
12
12
|
export class OscLinkProvider implements ILinkProvider {
|
|
13
13
|
private readonly _workCell = new CellData();
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IRenderDebouncerWithCallback } from '
|
|
7
|
-
import { ICoreBrowserService } from '
|
|
6
|
+
import { IRenderDebouncerWithCallback } from './Types';
|
|
7
|
+
import { ICoreBrowserService } from './services/Services';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Debounces calls to render terminal rows using animation frames.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
const RENDER_DEBOUNCE_THRESHOLD_MS = 1000; // 1 Second
|
|
7
7
|
|
|
8
|
-
import { IRenderDebouncer } from '
|
|
8
|
+
import { IRenderDebouncer } from './Types';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Debounces calls to update screen readers to update at most once configurable interval of time.
|
package/src/browser/Types.ts
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { CharData, IColor, ICoreTerminal, ITerminalOptions } from 'common/Types';
|
|
7
|
-
import { IBuffer } from 'common/buffer/Types';
|
|
6
|
+
import { CharData, IColor, ICoreTerminal, ITerminalOptions } from '../common/Types';
|
|
7
|
+
import { IBuffer } from '../common/buffer/Types';
|
|
8
8
|
import { IDisposable, IRenderDimensions as IRenderDimensionsApi, Terminal as ITerminalApi } from '@xterm/xterm';
|
|
9
|
-
import { channels, css } from 'common/Color';
|
|
10
|
-
import type { IEvent } from 'common/Event';
|
|
9
|
+
import { channels, css } from '../common/Color';
|
|
10
|
+
import type { IEvent } from '../common/Event';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* A portion of the public API that are implemented identially internally and simply passed through.
|
package/src/browser/Viewport.ts
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ICoreBrowserService, IRenderService, IThemeService } from '
|
|
7
|
-
import { ViewportConstants } from '
|
|
8
|
-
import { Disposable, toDisposable } from 'common/Lifecycle';
|
|
9
|
-
import { IBufferService, ICoreService, IMouseStateService, IOptionsService } from 'common/services/Services';
|
|
10
|
-
import { CoreMouseEventType } from 'common/Types';
|
|
11
|
-
import { scheduleAtNextAnimationFrame } from '
|
|
12
|
-
import { SmoothScrollableElement } from '
|
|
13
|
-
import type { IScrollableElementChangeOptions } from '
|
|
14
|
-
import { Emitter, EventUtils } from 'common/Event';
|
|
15
|
-
import { Scrollable, ScrollbarVisibility, type IScrollEvent } from '
|
|
6
|
+
import { ICoreBrowserService, IRenderService, IThemeService } from './services/Services';
|
|
7
|
+
import { ViewportConstants } from './shared/Constants';
|
|
8
|
+
import { Disposable, toDisposable } from '../common/Lifecycle';
|
|
9
|
+
import { IBufferService, ICoreService, IMouseStateService, IOptionsService } from '../common/services/Services';
|
|
10
|
+
import { CoreMouseEventType } from '../common/Types';
|
|
11
|
+
import { scheduleAtNextAnimationFrame } from './Dom';
|
|
12
|
+
import { SmoothScrollableElement } from './scrollable/scrollableElement';
|
|
13
|
+
import type { IScrollableElementChangeOptions } from './scrollable/scrollableElementOptions';
|
|
14
|
+
import { Emitter, EventUtils } from '../common/Event';
|
|
15
|
+
import { Scrollable, ScrollbarVisibility, type IScrollEvent } from './scrollable/scrollable';
|
|
16
16
|
|
|
17
17
|
export class Viewport extends Disposable {
|
|
18
18
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
import { ICoreBrowserService, IRenderService } from '
|
|
7
|
-
import { Disposable, toDisposable } from 'common/Lifecycle';
|
|
8
|
-
import { IBufferService, IDecorationService, IInternalDecoration } from 'common/services/Services';
|
|
6
|
+
import { ICoreBrowserService, IRenderService } from '../services/Services';
|
|
7
|
+
import { Disposable, toDisposable } from '../../common/Lifecycle';
|
|
8
|
+
import { IBufferService, IDecorationService, IInternalDecoration } from '../../common/services/Services';
|
|
9
9
|
|
|
10
10
|
export class BufferDecorationRenderer extends Disposable {
|
|
11
11
|
private readonly _container: HTMLElement;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
import { IInternalDecoration } from 'common/services/Services';
|
|
6
|
+
import { IInternalDecoration } from '../../common/services/Services';
|
|
7
7
|
|
|
8
8
|
export interface IColorZoneStore {
|
|
9
9
|
readonly zones: IColorZone[];
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
import { ColorZoneStore, IColorZone, IColorZoneStore } from '
|
|
7
|
-
import { ICoreBrowserService, IRenderService, IThemeService } from '
|
|
8
|
-
import { Disposable, toDisposable } from 'common/Lifecycle';
|
|
9
|
-
import { IBufferService, IDecorationService, IOptionsService } from 'common/services/Services';
|
|
6
|
+
import { ColorZoneStore, IColorZone, IColorZoneStore } from './ColorZoneStore';
|
|
7
|
+
import { ICoreBrowserService, IRenderService, IThemeService } from '../services/Services';
|
|
8
|
+
import { Disposable, toDisposable } from '../../common/Lifecycle';
|
|
9
|
+
import { IBufferService, IDecorationService, IOptionsService } from '../../common/services/Services';
|
|
10
10
|
|
|
11
11
|
const enum Constants {
|
|
12
12
|
OVERVIEW_RULER_BORDER_WIDTH = 1
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IRenderService } from '
|
|
7
|
-
import { IBufferService, ICoreService, IOptionsService } from 'common/services/Services';
|
|
8
|
-
import { C0 } from 'common/data/EscapeSequences';
|
|
6
|
+
import { IRenderService } from '../services/Services';
|
|
7
|
+
import { IBufferService, ICoreService, IOptionsService } from '../../common/services/Services';
|
|
8
|
+
import { C0 } from '../../common/data/EscapeSequences';
|
|
9
9
|
|
|
10
10
|
interface IPosition {
|
|
11
11
|
start: number;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { C0 } from 'common/data/EscapeSequences';
|
|
7
|
-
import { IBufferService } from 'common/services/Services';
|
|
6
|
+
import { C0 } from '../../common/data/EscapeSequences';
|
|
7
|
+
import { IBufferService } from '../../common/services/Services';
|
|
8
8
|
|
|
9
9
|
const enum Direction {
|
|
10
10
|
UP = 'A',
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import * as Strings from '
|
|
7
|
-
import { CoreBrowserTerminal as TerminalCore } from '
|
|
8
|
-
import { IBufferRange, ITerminal } from '
|
|
9
|
-
import { Disposable } from 'common/Lifecycle';
|
|
10
|
-
import { ITerminalOptions } from 'common/Types';
|
|
11
|
-
import { AddonManager } from 'common/public/AddonManager';
|
|
12
|
-
import { BufferNamespaceApi } from 'common/public/BufferNamespaceApi';
|
|
13
|
-
import { ParserApi } from 'common/public/ParserApi';
|
|
14
|
-
import { UnicodeApi } from 'common/public/UnicodeApi';
|
|
6
|
+
import * as Strings from '../LocalizableStrings';
|
|
7
|
+
import { CoreBrowserTerminal as TerminalCore } from '../CoreBrowserTerminal';
|
|
8
|
+
import { IBufferRange, ITerminal } from '../Types';
|
|
9
|
+
import { Disposable } from '../../common/Lifecycle';
|
|
10
|
+
import { ITerminalOptions } from '../../common/Types';
|
|
11
|
+
import { AddonManager } from '../../common/public/AddonManager';
|
|
12
|
+
import { BufferNamespaceApi } from '../../common/public/BufferNamespaceApi';
|
|
13
|
+
import { ParserApi } from '../../common/public/ParserApi';
|
|
14
|
+
import { UnicodeApi } from '../../common/public/UnicodeApi';
|
|
15
15
|
import { IBufferNamespace as IBufferNamespaceApi, IDecoration, IDecorationOptions, IDisposable, ILinkProvider, ILocalizableStrings, IMarker, IModes, IParser, IRenderDimensions, ITerminalAddon, Terminal as ITerminalApi, ITerminalInitOnlyOptions, IUnicodeHandling } from '@xterm/xterm';
|
|
16
|
-
import type { IEvent } from 'common/Event';
|
|
16
|
+
import type { IEvent } from '../../common/Event';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* The set of options that only have an effect when set in the Terminal constructor.
|
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { DomRendererRowFactory, RowCss } from '
|
|
7
|
-
import { WidthCache } from '
|
|
8
|
-
import { INVERTED_DEFAULT_COLOR, RendererConstants } from '
|
|
9
|
-
import { createRenderDimensions } from '
|
|
10
|
-
import { createSelectionRenderModel } from '
|
|
11
|
-
import { TextBlinkStateManager } from '
|
|
12
|
-
import { IRenderDimensions, IRenderer, IRequestRedrawEvent, ISelectionRenderModel } from '
|
|
13
|
-
import { ICharSizeService, ICoreBrowserService, IThemeService } from '
|
|
14
|
-
import { ILinkifier2, ILinkifierEvent, ITerminal, ReadonlyColorSet } from '
|
|
15
|
-
import { color } from 'common/Color';
|
|
16
|
-
import { Disposable, toDisposable } from 'common/Lifecycle';
|
|
17
|
-
import { IBufferService, ICoreService, IInstantiationService, IOptionsService } from 'common/services/Services';
|
|
18
|
-
import { Emitter } from 'common/Event';
|
|
19
|
-
import { addDisposableListener } from '
|
|
6
|
+
import { DomRendererRowFactory, RowCss } from './DomRendererRowFactory';
|
|
7
|
+
import { WidthCache } from './WidthCache';
|
|
8
|
+
import { INVERTED_DEFAULT_COLOR, RendererConstants } from '../shared/Constants';
|
|
9
|
+
import { createRenderDimensions } from '../shared/RendererUtils';
|
|
10
|
+
import { createSelectionRenderModel } from '../shared/SelectionRenderModel';
|
|
11
|
+
import { TextBlinkStateManager } from '../shared/TextBlinkStateManager';
|
|
12
|
+
import { IRenderDimensions, IRenderer, IRequestRedrawEvent, ISelectionRenderModel } from '../shared/Types';
|
|
13
|
+
import { ICharSizeService, ICoreBrowserService, IThemeService } from '../../services/Services';
|
|
14
|
+
import { ILinkifier2, ILinkifierEvent, ITerminal, ReadonlyColorSet } from '../../Types';
|
|
15
|
+
import { color } from '../../../common/Color';
|
|
16
|
+
import { Disposable, toDisposable } from '../../../common/Lifecycle';
|
|
17
|
+
import { IBufferService, ICoreService, IInstantiationService, IOptionsService } from '../../../common/services/Services';
|
|
18
|
+
import { Emitter } from '../../../common/Event';
|
|
19
|
+
import { addDisposableListener } from '../../Dom';
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
const enum Constants {
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { IBufferLine, ICellData, IColor } from 'common/Types';
|
|
7
|
-
import { INVERTED_DEFAULT_COLOR } from '
|
|
8
|
-
import { WHITESPACE_CELL_CHAR, Attributes } from 'common/buffer/Constants';
|
|
9
|
-
import { CellData } from 'common/buffer/CellData';
|
|
10
|
-
import { ICoreService, IDecorationService, IOptionsService } from 'common/services/Services';
|
|
11
|
-
import { channels, color } from 'common/Color';
|
|
12
|
-
import { ICharacterJoinerService, ICoreBrowserService, IThemeService } from '
|
|
13
|
-
import { JoinedCellData } from '
|
|
14
|
-
import { treatGlyphAsBackgroundColor } from '
|
|
15
|
-
import { AttributeData } from 'common/buffer/AttributeData';
|
|
16
|
-
import { WidthCache } from '
|
|
17
|
-
import { IColorContrastCache } from '
|
|
6
|
+
import { IBufferLine, ICellData, IColor } from '../../../common/Types';
|
|
7
|
+
import { INVERTED_DEFAULT_COLOR } from '../shared/Constants';
|
|
8
|
+
import { WHITESPACE_CELL_CHAR, Attributes } from '../../../common/buffer/Constants';
|
|
9
|
+
import { CellData } from '../../../common/buffer/CellData';
|
|
10
|
+
import { ICoreService, IDecorationService, IOptionsService } from '../../../common/services/Services';
|
|
11
|
+
import { channels, color } from '../../../common/Color';
|
|
12
|
+
import { ICharacterJoinerService, ICoreBrowserService, IThemeService } from '../../services/Services';
|
|
13
|
+
import { JoinedCellData } from '../../services/CharacterJoinerService';
|
|
14
|
+
import { treatGlyphAsBackgroundColor } from '../shared/RendererUtils';
|
|
15
|
+
import { AttributeData } from '../../../common/buffer/AttributeData';
|
|
16
|
+
import { WidthCache } from './WidthCache';
|
|
17
|
+
import { IColorContrastCache } from '../../Types';
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
export const enum RowCss {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { throwIfFalsy } from '
|
|
7
|
-
import { IDisposable } from 'common/Types';
|
|
8
|
-
import { FontWeight } from 'common/services/Services';
|
|
6
|
+
import { throwIfFalsy } from '../shared/RendererUtils';
|
|
7
|
+
import { IDisposable } from '../../../common/Types';
|
|
8
|
+
import { FontWeight } from '../../../common/services/Services';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
export const enum WidthCacheSettings {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ITerminal } from '
|
|
7
|
-
import { ISelectionRenderModel } from '
|
|
6
|
+
import { ITerminal } from '../../Types';
|
|
7
|
+
import { ISelectionRenderModel } from './Types';
|
|
8
8
|
import { Terminal } from '@xterm/xterm';
|
|
9
9
|
|
|
10
10
|
class SelectionRenderModel implements ISelectionRenderModel {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @license MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ICoreBrowserService } from '
|
|
7
|
-
import { Disposable, toDisposable } from 'common/Lifecycle';
|
|
8
|
-
import { IOptionsService } from 'common/services/Services';
|
|
6
|
+
import { ICoreBrowserService } from '../../services/Services';
|
|
7
|
+
import { Disposable, toDisposable } from '../../../common/Lifecycle';
|
|
8
|
+
import { IOptionsService } from '../../../common/services/Services';
|
|
9
9
|
|
|
10
10
|
export class TextBlinkStateManager extends Disposable {
|
|
11
11
|
private _intervalDuration: number = 0;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { Terminal } from '@xterm/xterm';
|
|
7
|
-
import { ITerminal } from '
|
|
8
|
-
import { IDisposable } from 'common/Types';
|
|
9
|
-
import type { IEvent } from 'common/Event';
|
|
7
|
+
import { ITerminal } from '../../Types';
|
|
8
|
+
import { IDisposable } from '../../../common/Types';
|
|
9
|
+
import type { IEvent } from '../../../common/Event';
|
|
10
10
|
|
|
11
11
|
export interface IDimensions {
|
|
12
12
|
width: number;
|
|
@@ -11,7 +11,7 @@ import { ScrollbarArrow, IScrollbarArrowOptions } from './scrollbarArrow';
|
|
|
11
11
|
import { ScrollbarState } from './scrollbarState';
|
|
12
12
|
import { ScrollbarVisibilityController } from './scrollbarVisibilityController';
|
|
13
13
|
import { Widget } from './widget';
|
|
14
|
-
import * as platform from 'common/Platform';
|
|
14
|
+
import * as platform from '../../common/Platform';
|
|
15
15
|
import { INewScrollPosition, Scrollable, ScrollbarVisibility } from './scrollable';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
import * as dom from '../Dom';
|
|
7
|
-
import { DisposableStore, IDisposable, toDisposable } from 'common/Lifecycle';
|
|
7
|
+
import { DisposableStore, IDisposable, toDisposable } from '../../common/Lifecycle';
|
|
8
8
|
|
|
9
9
|
type PointerMoveCallback = (event: PointerEvent) => void;
|
|
10
10
|
type OnStopCallback = () => void;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
import * as platform from 'common/Platform';
|
|
6
|
+
import * as platform from '../../common/Platform';
|
|
7
7
|
|
|
8
8
|
interface IWindowChainElement {
|
|
9
9
|
readonly window: WeakRef<Window>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
import { Emitter, IEvent } from 'common/Event';
|
|
7
|
-
import { Disposable, IDisposable } from 'common/Lifecycle';
|
|
6
|
+
import { Emitter, IEvent } from '../../common/Event';
|
|
7
|
+
import { Disposable, IDisposable } from '../../common/Lifecycle';
|
|
8
8
|
|
|
9
9
|
export const enum ScrollbarVisibility {
|
|
10
10
|
AUTO = 1,
|
|
@@ -11,10 +11,10 @@ import { HorizontalScrollbar } from './horizontalScrollbar';
|
|
|
11
11
|
import { IScrollableElementChangeOptions, IScrollableElementCreationOptions, IScrollableElementResolvedOptions } from './scrollableElementOptions';
|
|
12
12
|
import { VerticalScrollbar } from './verticalScrollbar';
|
|
13
13
|
import { Widget } from './widget';
|
|
14
|
-
import { TimeoutTimer } from 'common/Async';
|
|
15
|
-
import { Emitter, IEvent } from 'common/Event';
|
|
16
|
-
import { IDisposable, dispose } from 'common/Lifecycle';
|
|
17
|
-
import * as platform from 'common/Platform';
|
|
14
|
+
import { TimeoutTimer } from '../../common/Async';
|
|
15
|
+
import { Emitter, IEvent } from '../../common/Event';
|
|
16
|
+
import { IDisposable, dispose } from '../../common/Lifecycle';
|
|
17
|
+
import * as platform from '../../common/Platform';
|
|
18
18
|
import { INewScrollDimensions, INewScrollPosition, IScrollDimensions, IScrollPosition, IScrollEvent, Scrollable, ScrollbarVisibility } from './scrollable';
|
|
19
19
|
// import 'vs/css!./media/scrollbars';
|
|
20
20
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { GlobalPointerMoveMonitor } from './globalPointerMoveMonitor';
|
|
7
7
|
import { Widget } from './widget';
|
|
8
|
-
import { TimeoutTimer } from 'common/Async';
|
|
8
|
+
import { TimeoutTimer } from '../../common/Async';
|
|
9
9
|
import * as dom from '../Dom';
|
|
10
10
|
|
|
11
11
|
export interface IScrollbarArrowOptions {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
import { FastDomNode } from './fastDomNode';
|
|
7
|
-
import { TimeoutTimer } from 'common/Async';
|
|
8
|
-
import { Disposable } from 'common/Lifecycle';
|
|
7
|
+
import { TimeoutTimer } from '../../common/Async';
|
|
8
|
+
import { Disposable } from '../../common/Lifecycle';
|
|
9
9
|
import { ScrollbarVisibility } from './scrollable';
|
|
10
10
|
|
|
11
11
|
export class ScrollbarVisibilityController extends Disposable {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
import * as DomUtils from '../Dom';
|
|
7
|
-
import { Disposable, IDisposable, toDisposable } from 'common/Lifecycle';
|
|
7
|
+
import { Disposable, IDisposable, toDisposable } from '../../common/Lifecycle';
|
|
8
8
|
|
|
9
9
|
const mainWindow = (typeof window === 'object' ? window : globalThis) as Window & typeof globalThis;
|
|
10
10
|
|