@xterm/xterm 6.1.0-beta.256 → 6.1.0-beta.258

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.
Files changed (99) hide show
  1. package/lib/xterm.js +1 -1
  2. package/lib/xterm.js.map +1 -1
  3. package/lib/xterm.mjs +1 -1
  4. package/lib/xterm.mjs.map +2 -2
  5. package/package.json +12 -8
  6. package/src/browser/AccessibilityManager.ts +8 -8
  7. package/src/browser/Clipboard.ts +2 -2
  8. package/src/browser/ColorContrastCache.ts +3 -3
  9. package/src/browser/CoreBrowserTerminal.ts +34 -34
  10. package/src/browser/Dom.ts +2 -2
  11. package/src/browser/Linkifier.ts +6 -6
  12. package/src/browser/OscLinkProvider.ts +5 -5
  13. package/src/browser/RenderDebouncer.ts +2 -2
  14. package/src/browser/TimeBasedDebouncer.ts +1 -1
  15. package/src/browser/Types.ts +4 -4
  16. package/src/browser/Viewport.ts +10 -10
  17. package/src/browser/decorations/BufferDecorationRenderer.ts +3 -3
  18. package/src/browser/decorations/ColorZoneStore.ts +1 -1
  19. package/src/browser/decorations/OverviewRulerRenderer.ts +4 -4
  20. package/src/browser/input/CompositionHelper.ts +3 -3
  21. package/src/browser/input/MoveToCell.ts +2 -2
  22. package/src/browser/public/Terminal.ts +10 -10
  23. package/src/browser/renderer/dom/DomRenderer.ts +14 -14
  24. package/src/browser/renderer/dom/DomRendererRowFactory.ts +12 -13
  25. package/src/browser/renderer/dom/WidthCache.ts +3 -3
  26. package/src/browser/renderer/shared/RendererUtils.ts +1 -1
  27. package/src/browser/renderer/shared/SelectionRenderModel.ts +2 -2
  28. package/src/browser/renderer/shared/TextBlinkStateManager.ts +3 -3
  29. package/src/browser/renderer/shared/Types.ts +3 -3
  30. package/src/browser/scrollable/abstractScrollbar.ts +1 -1
  31. package/src/browser/scrollable/globalPointerMoveMonitor.ts +1 -1
  32. package/src/browser/scrollable/mouseEvent.ts +1 -1
  33. package/src/browser/scrollable/scrollable.ts +2 -2
  34. package/src/browser/scrollable/scrollableElement.ts +4 -4
  35. package/src/browser/scrollable/scrollbarArrow.ts +1 -1
  36. package/src/browser/scrollable/scrollbarVisibilityController.ts +2 -2
  37. package/src/browser/scrollable/touch.ts +1 -1
  38. package/src/browser/scrollable/widget.ts +1 -1
  39. package/src/browser/selection/SelectionModel.ts +1 -1
  40. package/src/browser/services/CharSizeService.ts +4 -4
  41. package/src/browser/services/CharacterJoinerService.ts +7 -7
  42. package/src/browser/services/CoreBrowserService.ts +3 -3
  43. package/src/browser/services/KeyboardService.ts +7 -7
  44. package/src/browser/services/LinkProviderService.ts +3 -3
  45. package/src/browser/services/MouseCoordsService.ts +3 -3
  46. package/src/browser/services/MouseService.ts +6 -6
  47. package/src/browser/services/RenderService.ts +8 -8
  48. package/src/browser/services/SelectionService.ts +14 -14
  49. package/src/browser/services/Services.ts +6 -6
  50. package/src/browser/services/ThemeService.ts +8 -8
  51. package/src/common/Async.ts +1 -1
  52. package/src/common/CircularList.ts +3 -3
  53. package/src/common/Color.ts +1 -1
  54. package/src/common/CoreTerminal.ts +18 -18
  55. package/src/common/Event.ts +1 -1
  56. package/src/common/InputHandler.ts +20 -20
  57. package/src/common/SortedList.ts +2 -2
  58. package/src/common/TaskQueue.ts +1 -1
  59. package/src/common/Types.ts +6 -6
  60. package/src/common/Version.ts +1 -1
  61. package/src/common/WindowsMode.ts +2 -2
  62. package/src/common/buffer/AttributeData.ts +2 -2
  63. package/src/common/buffer/Buffer.ts +14 -14
  64. package/src/common/buffer/BufferLine.ts +6 -6
  65. package/src/common/buffer/BufferLineStringCache.ts +3 -3
  66. package/src/common/buffer/BufferReflow.ts +3 -3
  67. package/src/common/buffer/BufferSet.ts +6 -6
  68. package/src/common/buffer/CellData.ts +4 -4
  69. package/src/common/buffer/Marker.ts +3 -3
  70. package/src/common/buffer/Types.ts +2 -2
  71. package/src/common/data/Charsets.ts +1 -1
  72. package/src/common/input/Keyboard.ts +2 -2
  73. package/src/common/input/KittyKeyboard.ts +2 -2
  74. package/src/common/input/UnicodeV6.ts +2 -2
  75. package/src/common/input/Win32InputMode.ts +2 -2
  76. package/src/common/input/WriteBuffer.ts +3 -3
  77. package/src/common/parser/ApcParser.ts +5 -5
  78. package/src/common/parser/DcsParser.ts +6 -6
  79. package/src/common/parser/EscapeSequenceParser.ts +8 -8
  80. package/src/common/parser/OscParser.ts +5 -5
  81. package/src/common/parser/Params.ts +1 -1
  82. package/src/common/parser/Types.ts +2 -2
  83. package/src/common/public/BufferApiView.ts +3 -3
  84. package/src/common/public/BufferLineApiView.ts +2 -2
  85. package/src/common/public/BufferNamespaceApi.ts +4 -4
  86. package/src/common/public/ParserApi.ts +2 -2
  87. package/src/common/public/UnicodeApi.ts +1 -1
  88. package/src/common/services/BufferService.ts +6 -6
  89. package/src/common/services/CharsetService.ts +2 -2
  90. package/src/common/services/CoreService.ts +4 -4
  91. package/src/common/services/DecorationService.ts +8 -8
  92. package/src/common/services/InstantiationService.ts +2 -2
  93. package/src/common/services/LogService.ts +2 -2
  94. package/src/common/services/MouseStateService.ts +4 -4
  95. package/src/common/services/OptionsService.ts +5 -5
  96. package/src/common/services/OscLinkService.ts +2 -2
  97. package/src/common/services/ServiceRegistry.ts +1 -1
  98. package/src/common/services/Services.ts +4 -4
  99. package/src/common/services/UnicodeService.ts +3 -3
@@ -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
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  import * as dom from '../Dom';
7
7
  import { IMouseEvent, StandardMouseEvent } from './mouseEvent';
8
- import { Disposable } from 'common/Lifecycle';
8
+ import { Disposable } from '../../common/Lifecycle';
9
9
 
10
10
  export abstract class Widget extends Disposable {
11
11
 
@@ -3,7 +3,7 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IBufferService } from 'common/services/Services';
6
+ import { IBufferService } from '../../common/services/Services';
7
7
 
8
8
  /**
9
9
  * Represents a selection within the buffer. This model only cares about column
@@ -3,10 +3,10 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IOptionsService } from 'common/services/Services';
7
- import { ICharSizeService } from 'browser/services/Services';
8
- import { Disposable } from 'common/Lifecycle';
9
- import { Emitter } from 'common/Event';
6
+ import { IOptionsService } from '../../common/services/Services';
7
+ import { ICharSizeService } from './Services';
8
+ import { Disposable } from '../../common/Lifecycle';
9
+ import { Emitter } from '../../common/Event';
10
10
 
11
11
  export class CharSizeService extends Disposable implements ICharSizeService {
12
12
  public serviceBrand: undefined;
@@ -3,13 +3,13 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IBufferLine, ICellData, CharData } from 'common/Types';
7
- import { ICharacterJoiner } from 'browser/Types';
8
- import { AttributeData } from 'common/buffer/AttributeData';
9
- import { WHITESPACE_CELL_CHAR, Content } from 'common/buffer/Constants';
10
- import { CellData } from 'common/buffer/CellData';
11
- import { IBufferService } from 'common/services/Services';
12
- import { ICharacterJoinerService } from 'browser/services/Services';
6
+ import { IBufferLine, ICellData, CharData } from '../../common/Types';
7
+ import { ICharacterJoiner } from '../Types';
8
+ import { AttributeData } from '../../common/buffer/AttributeData';
9
+ import { WHITESPACE_CELL_CHAR, Content } from '../../common/buffer/Constants';
10
+ import { CellData } from '../../common/buffer/CellData';
11
+ import { IBufferService } from '../../common/services/Services';
12
+ import { ICharacterJoinerService } from './Services';
13
13
 
14
14
  export class JoinedCellData extends AttributeData implements ICellData {
15
15
  private _width: number;
@@ -4,9 +4,9 @@
4
4
  */
5
5
 
6
6
  import { ICoreBrowserService } from './Services';
7
- import { Emitter, EventUtils } from 'common/Event';
8
- import { addDisposableListener } from 'browser/Dom';
9
- import { Disposable, MutableDisposable, toDisposable } from 'common/Lifecycle';
7
+ import { Emitter, EventUtils } from '../../common/Event';
8
+ import { addDisposableListener } from '../Dom';
9
+ import { Disposable, MutableDisposable, toDisposable } from '../../common/Lifecycle';
10
10
 
11
11
  export class CoreBrowserService extends Disposable implements ICoreBrowserService {
12
12
  public serviceBrand: undefined;
@@ -3,13 +3,13 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IKeyboardService } from 'browser/services/Services';
7
- import { evaluateKeyboardEvent } from 'common/input/Keyboard';
8
- import { KittyKeyboard, KittyKeyboardEventType, KittyKeyboardFlags } from 'common/input/KittyKeyboard';
9
- import { Win32InputMode } from 'common/input/Win32InputMode';
10
- import { isMac } from 'common/Platform';
11
- import { ICoreService, IOptionsService } from 'common/services/Services';
12
- import { IKeyboardResult } from 'common/Types';
6
+ import { IKeyboardService } from './Services';
7
+ import { evaluateKeyboardEvent } from '../../common/input/Keyboard';
8
+ import { KittyKeyboard, KittyKeyboardEventType, KittyKeyboardFlags } from '../../common/input/KittyKeyboard';
9
+ import { Win32InputMode } from '../../common/input/Win32InputMode';
10
+ import { isMac } from '../../common/Platform';
11
+ import { ICoreService, IOptionsService } from '../../common/services/Services';
12
+ import { IKeyboardResult } from '../../common/Types';
13
13
 
14
14
  export class KeyboardService implements IKeyboardService {
15
15
  public serviceBrand: undefined;
@@ -1,6 +1,6 @@
1
- import { ILinkProvider, ILinkProviderService } from 'browser/services/Services';
2
- import { Disposable, toDisposable } from 'common/Lifecycle';
3
- import { IDisposable } from 'common/Types';
1
+ import { ILinkProvider, ILinkProviderService } from './Services';
2
+ import { Disposable, toDisposable } from '../../common/Lifecycle';
3
+ import { IDisposable } from '../../common/Types';
4
4
 
5
5
  export class LinkProviderService extends Disposable implements ILinkProviderService {
6
6
  declare public serviceBrand: undefined;
@@ -3,9 +3,9 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { getWindow } from 'browser/Dom';
7
- import { getCoords, getCoordsRelativeToElement } from 'browser/input/Mouse';
8
- import { ICharSizeService, IMouseCoordsService, IRenderService } from 'browser/services/Services';
6
+ import { getWindow } from '../Dom';
7
+ import { getCoords, getCoordsRelativeToElement } from '../input/Mouse';
8
+ import { ICharSizeService, IMouseCoordsService, IRenderService } from './Services';
9
9
 
10
10
  export class MouseCoordsService implements IMouseCoordsService {
11
11
  public serviceBrand: undefined;
@@ -3,13 +3,13 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { addDisposableListener } from 'browser/Dom';
7
- import { IBufferService, IMouseStateService, ICoreService, ILogService, IOptionsService } from 'common/services/Services';
8
- import { CoreMouseAction, CoreMouseButton, CoreMouseEventType, ICoreMouseEvent, IDisposable } from 'common/Types';
9
- import { C0 } from 'common/data/EscapeSequences';
10
- import { DisposableStore, MutableDisposable, toDisposable } from 'common/Lifecycle';
6
+ import { addDisposableListener } from '../Dom';
7
+ import { IBufferService, IMouseStateService, ICoreService, ILogService, IOptionsService } from '../../common/services/Services';
8
+ import { CoreMouseAction, CoreMouseButton, CoreMouseEventType, ICoreMouseEvent, IDisposable } from '../../common/Types';
9
+ import { C0 } from '../../common/data/EscapeSequences';
10
+ import { DisposableStore, MutableDisposable, toDisposable } from '../../common/Lifecycle';
11
11
  import { ICoreBrowserService, IMouseCoordsService, IMouseService, IMouseServiceTarget, IRenderService, ISelectionService } from './Services';
12
- import { Gesture, EventType as GestureEventType, IGestureEvent } from 'browser/scrollable/touch';
12
+ import { Gesture, EventType as GestureEventType, IGestureEvent } from '../scrollable/touch';
13
13
 
14
14
  type RequestedMouseEvents = Record<'mouseup' | 'wheel' | 'mousedrag' | 'mousemove', EventListener | null>;
15
15
 
@@ -3,14 +3,14 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { RenderDebouncer } from 'browser/RenderDebouncer';
7
- import { IRenderDebouncerWithCallback } from 'browser/Types';
8
- import { IRenderDimensions, IRenderer } from 'browser/renderer/shared/Types';
9
- import { ICharSizeService, ICoreBrowserService, IRenderService, IThemeService } from 'browser/services/Services';
10
- import { Disposable, MutableDisposable, toDisposable } from 'common/Lifecycle';
11
- import { DebouncedIdleTask } from 'common/TaskQueue';
12
- import { IBufferService, ICoreService, IDecorationService, ILogService, IOptionsService } from 'common/services/Services';
13
- import { Emitter } from 'common/Event';
6
+ import { RenderDebouncer } from '../RenderDebouncer';
7
+ import { IRenderDebouncerWithCallback } from '../Types';
8
+ import { IRenderDimensions, IRenderer } from '../renderer/shared/Types';
9
+ import { ICharSizeService, ICoreBrowserService, IRenderService, IThemeService } from './Services';
10
+ import { Disposable, MutableDisposable, toDisposable } from '../../common/Lifecycle';
11
+ import { DebouncedIdleTask } from '../../common/TaskQueue';
12
+ import { IBufferService, ICoreService, IDecorationService, ILogService, IOptionsService } from '../../common/services/Services';
13
+ import { Emitter } from '../../common/Event';
14
14
 
15
15
  interface ISelectionState {
16
16
  start: [number, number] | undefined;
@@ -3,20 +3,20 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IBufferRange, ILinkifier2 } from 'browser/Types';
7
- import { getCoordsRelativeToElement } from 'browser/input/Mouse';
8
- import { moveToCellSequence } from 'browser/input/MoveToCell';
9
- import { SelectionModel } from 'browser/selection/SelectionModel';
10
- import { ISelectionRedrawRequestEvent, ISelectionRequestScrollLinesEvent } from 'browser/selection/Types';
11
- import { ICoreBrowserService, IMouseCoordsService, IRenderService, ISelectionService } from 'browser/services/Services';
12
- import { Disposable, MutableDisposable, toDisposable } from 'common/Lifecycle';
13
- import * as Browser from 'common/Platform';
14
- import { IBufferLine, ICellData, IDisposable } from 'common/Types';
15
- import { getRangeLength } from 'common/buffer/BufferRange';
16
- import { CellData } from 'common/buffer/CellData';
17
- import { IBuffer } from 'common/buffer/Types';
18
- import { IBufferService, ICoreService, IMouseStateService, IOptionsService } from 'common/services/Services';
19
- import { Emitter } from 'common/Event';
6
+ import { IBufferRange, ILinkifier2 } from '../Types';
7
+ import { getCoordsRelativeToElement } from '../input/Mouse';
8
+ import { moveToCellSequence } from '../input/MoveToCell';
9
+ import { SelectionModel } from '../selection/SelectionModel';
10
+ import { ISelectionRedrawRequestEvent, ISelectionRequestScrollLinesEvent } from '../selection/Types';
11
+ import { ICoreBrowserService, IMouseCoordsService, IRenderService, ISelectionService } from './Services';
12
+ import { Disposable, MutableDisposable, toDisposable } from '../../common/Lifecycle';
13
+ import * as Browser from '../../common/Platform';
14
+ import { IBufferLine, ICellData, IDisposable } from '../../common/Types';
15
+ import { getRangeLength } from '../../common/buffer/BufferRange';
16
+ import { CellData } from '../../common/buffer/CellData';
17
+ import { IBuffer } from '../../common/buffer/Types';
18
+ import { IBufferService, ICoreService, IMouseStateService, IOptionsService } from '../../common/services/Services';
19
+ import { Emitter } from '../../common/Event';
20
20
 
21
21
  const enum Constants {
22
22
  /**
@@ -3,12 +3,12 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IRenderDimensions, IRenderer } from 'browser/renderer/shared/Types';
7
- import { IColorSet, ILink, ReadonlyColorSet } from 'browser/Types';
8
- import { ISelectionRedrawRequestEvent as ISelectionRequestRedrawEvent, ISelectionRequestScrollLinesEvent } from 'browser/selection/Types';
9
- import { createDecorator } from 'common/services/ServiceRegistry';
10
- import { AllColorIndex, IDisposable, IKeyboardResult } from 'common/Types';
11
- import type { IEvent } from 'common/Event';
6
+ import { IRenderDimensions, IRenderer } from '../renderer/shared/Types';
7
+ import { IColorSet, ILink, ReadonlyColorSet } from '../Types';
8
+ import { ISelectionRedrawRequestEvent as ISelectionRequestRedrawEvent, ISelectionRequestScrollLinesEvent } from '../selection/Types';
9
+ import { createDecorator } from '../../common/services/ServiceRegistry';
10
+ import { AllColorIndex, IDisposable, IKeyboardResult } from '../../common/Types';
11
+ import type { IEvent } from '../../common/Event';
12
12
 
13
13
  export const ICharSizeService = createDecorator<ICharSizeService>('CharSizeService');
14
14
  export interface ICharSizeService {
@@ -3,14 +3,14 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { ColorContrastCache } from 'browser/ColorContrastCache';
7
- import { IThemeService } from 'browser/services/Services';
8
- import { DEFAULT_ANSI_COLORS, IColorContrastCache, IColorSet, ReadonlyColorSet } from 'browser/Types';
9
- import { color, css, NULL_COLOR } from 'common/Color';
10
- import { Disposable } from 'common/Lifecycle';
11
- import { IOptionsService, ITheme } from 'common/services/Services';
12
- import { AllColorIndex, IColor, SpecialColorIndex } from 'common/Types';
13
- import { Emitter } from 'common/Event';
6
+ import { ColorContrastCache } from '../ColorContrastCache';
7
+ import { IThemeService } from './Services';
8
+ import { DEFAULT_ANSI_COLORS, IColorContrastCache, IColorSet, ReadonlyColorSet } from '../Types';
9
+ import { color, css, NULL_COLOR } from '../../common/Color';
10
+ import { Disposable } from '../../common/Lifecycle';
11
+ import { IOptionsService, ITheme } from '../../common/services/Services';
12
+ import { AllColorIndex, IColor, SpecialColorIndex } from '../../common/Types';
13
+ import { Emitter } from '../../common/Event';
14
14
 
15
15
  interface IRestoreColorSet {
16
16
  foreground: IColor;
@@ -5,7 +5,7 @@
5
5
  * Minimal async helpers for xterm.js core.
6
6
  */
7
7
 
8
- import { DisposableStore, IDisposable, toDisposable } from 'common/Lifecycle';
8
+ import { DisposableStore, IDisposable, toDisposable } from './Lifecycle';
9
9
 
10
10
  export function timeout(millis: number): Promise<void> {
11
11
  return new Promise(resolve => setTimeout(resolve, millis));
@@ -3,9 +3,9 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { ICircularList } from 'common/Types';
7
- import { Disposable } from 'common/Lifecycle';
8
- import { Emitter } from 'common/Event';
6
+ import { ICircularList } from './Types';
7
+ import { Disposable } from './Lifecycle';
8
+ import { Emitter } from './Event';
9
9
 
10
10
  export interface IInsertEvent {
11
11
  index: number;
@@ -3,7 +3,7 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IColor, IColorRGB } from 'common/Types';
6
+ import { IColor, IColorRGB } from './Types';
7
7
 
8
8
  let $r = 0;
9
9
  let $g = 0;
@@ -21,24 +21,24 @@
21
21
  * http://linux.die.net/man/7/urxvt
22
22
  */
23
23
 
24
- import { IInstantiationService, IOptionsService, IBufferService, ILogService, ICharsetService, ICoreService, IMouseStateService, IUnicodeService, LogLevelEnum, ITerminalOptions, IOscLinkService } from 'common/services/Services';
25
- import { InstantiationService } from 'common/services/InstantiationService';
26
- import { LogService } from 'common/services/LogService';
27
- import { BufferService, BufferServiceConstants } from 'common/services/BufferService';
28
- import { OptionsService } from 'common/services/OptionsService';
29
- import { IDisposable, IAttributeData, ICoreTerminal, IScrollEvent } from 'common/Types';
30
- import { CoreService } from 'common/services/CoreService';
31
- import { MouseStateService } from 'common/services/MouseStateService';
32
- import { UnicodeService } from 'common/services/UnicodeService';
33
- import { CharsetService } from 'common/services/CharsetService';
34
- import { updateWindowsModeWrappedState } from 'common/WindowsMode';
35
- import { IFunctionIdentifier, IParams } from 'common/parser/Types';
36
- import { IBufferSet } from 'common/buffer/Types';
37
- import { InputHandler } from 'common/InputHandler';
38
- import { WriteBuffer } from 'common/input/WriteBuffer';
39
- import { OscLinkService } from 'common/services/OscLinkService';
40
- import { Emitter, EventUtils, type IEvent } from 'common/Event';
41
- import { Disposable, MutableDisposable, toDisposable } from 'common/Lifecycle';
24
+ import { IInstantiationService, IOptionsService, IBufferService, ILogService, ICharsetService, ICoreService, IMouseStateService, IUnicodeService, LogLevelEnum, ITerminalOptions, IOscLinkService } from './services/Services';
25
+ import { InstantiationService } from './services/InstantiationService';
26
+ import { LogService } from './services/LogService';
27
+ import { BufferService, BufferServiceConstants } from './services/BufferService';
28
+ import { OptionsService } from './services/OptionsService';
29
+ import { IDisposable, IAttributeData, ICoreTerminal, IScrollEvent } from './Types';
30
+ import { CoreService } from './services/CoreService';
31
+ import { MouseStateService } from './services/MouseStateService';
32
+ import { UnicodeService } from './services/UnicodeService';
33
+ import { CharsetService } from './services/CharsetService';
34
+ import { updateWindowsModeWrappedState } from './WindowsMode';
35
+ import { IFunctionIdentifier, IParams } from './parser/Types';
36
+ import { IBufferSet } from './buffer/Types';
37
+ import { InputHandler } from './InputHandler';
38
+ import { WriteBuffer } from './input/WriteBuffer';
39
+ import { OscLinkService } from './services/OscLinkService';
40
+ import { Emitter, EventUtils, type IEvent } from './Event';
41
+ import { Disposable, MutableDisposable, toDisposable } from './Lifecycle';
42
42
 
43
43
  // Only trigger this warning a single time per session
44
44
  let hasWriteSyncWarnHappened = false;
@@ -6,7 +6,7 @@
6
6
  * Simplified from VS Code's event.ts - no leak detection/profiling.
7
7
  */
8
8
 
9
- import { IDisposable, DisposableStore, toDisposable } from 'common/Lifecycle';
9
+ import { IDisposable, DisposableStore, toDisposable } from './Lifecycle';
10
10
 
11
11
  export interface IEvent<T> {
12
12
  (listener: (e: T) => any, thisArgs?: any, disposables?: IDisposable[] | DisposableStore): IDisposable;
@@ -4,26 +4,26 @@
4
4
  * @license MIT
5
5
  */
6
6
 
7
- import { IInputHandler, IAttributeData, IDisposable, IWindowOptions, IColorEvent, IParseStack, ColorIndex, ColorRequestType, SpecialColorIndex } from 'common/Types';
8
- import { C0, C1 } from 'common/data/EscapeSequences';
9
- import { CHARSETS, DEFAULT_CHARSET } from 'common/data/Charsets';
10
- import { EscapeSequenceParser } from 'common/parser/EscapeSequenceParser';
11
- import { Disposable } from 'common/Lifecycle';
12
- import { StringToUtf32, stringFromCodePoint, Utf8ToUtf32 } from 'common/input/TextDecoder';
13
- import { BufferLine, DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
14
- import { IParsingState, IEscapeSequenceParser, IParams, IFunctionIdentifier } from 'common/parser/Types';
15
- import { NULL_CELL_CODE, NULL_CELL_WIDTH, Attributes, FgFlags, BgFlags, Content, UnderlineStyle } from 'common/buffer/Constants';
16
- import { CellData } from 'common/buffer/CellData';
17
- import { AttributeData } from 'common/buffer/AttributeData';
18
- import { ICoreService, IBufferService, IOptionsService, ILogService, IMouseStateService, ICharsetService, IUnicodeService, LogLevelEnum, IOscLinkService } from 'common/services/Services';
19
- import { UnicodeService } from 'common/services/UnicodeService';
20
- import { OscHandler } from 'common/parser/OscParser';
21
- import { DcsHandler } from 'common/parser/DcsParser';
22
- import { ApcHandler } from 'common/parser/ApcParser';
23
- import { IBuffer } from 'common/buffer/Types';
24
- import { parseColor } from 'common/input/XParseColor';
25
- import { Emitter } from 'common/Event';
26
- import { XTERM_VERSION } from 'common/Version';
7
+ import { IInputHandler, IAttributeData, IDisposable, IWindowOptions, IColorEvent, IParseStack, ColorIndex, ColorRequestType, SpecialColorIndex } from './Types';
8
+ import { C0, C1 } from './data/EscapeSequences';
9
+ import { CHARSETS, DEFAULT_CHARSET } from './data/Charsets';
10
+ import { EscapeSequenceParser } from './parser/EscapeSequenceParser';
11
+ import { Disposable } from './Lifecycle';
12
+ import { StringToUtf32, stringFromCodePoint, Utf8ToUtf32 } from './input/TextDecoder';
13
+ import { BufferLine, DEFAULT_ATTR_DATA } from './buffer/BufferLine';
14
+ import { IParsingState, IEscapeSequenceParser, IParams, IFunctionIdentifier } from './parser/Types';
15
+ import { NULL_CELL_CODE, NULL_CELL_WIDTH, Attributes, FgFlags, BgFlags, Content, UnderlineStyle } from './buffer/Constants';
16
+ import { CellData } from './buffer/CellData';
17
+ import { AttributeData } from './buffer/AttributeData';
18
+ import { ICoreService, IBufferService, IOptionsService, ILogService, IMouseStateService, ICharsetService, IUnicodeService, LogLevelEnum, IOscLinkService } from './services/Services';
19
+ import { UnicodeService } from './services/UnicodeService';
20
+ import { OscHandler } from './parser/OscParser';
21
+ import { DcsHandler } from './parser/DcsParser';
22
+ import { ApcHandler } from './parser/ApcParser';
23
+ import { IBuffer } from './buffer/Types';
24
+ import { parseColor } from './input/XParseColor';
25
+ import { Emitter } from './Event';
26
+ import { XTERM_VERSION } from './Version';
27
27
 
28
28
  /**
29
29
  * Map collect to glevel. Used in `selectCharset`.
@@ -3,8 +3,8 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IdleTaskQueue } from 'common/TaskQueue';
7
- import type { ILogService } from 'common/services/Services';
6
+ import { IdleTaskQueue } from './TaskQueue';
7
+ import type { ILogService } from './services/Services';
8
8
 
9
9
  // Work variables to avoid garbage collection.
10
10
  let i = 0;
@@ -3,7 +3,7 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import type { ILogService } from 'common/services/Services';
6
+ import type { ILogService } from './services/Services';
7
7
 
8
8
  interface ITaskQueue {
9
9
  /**
@@ -3,13 +3,13 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IDeleteEvent, IInsertEvent } from 'common/CircularList';
7
- import { UnderlineStyle } from 'common/buffer/Constants';
8
- import { IBufferSet } from 'common/buffer/Types';
9
- import { IParams } from 'common/parser/Types';
10
- import { IMouseStateService, ICoreService, IOptionsService, IUnicodeService } from 'common/services/Services';
6
+ import { IDeleteEvent, IInsertEvent } from './CircularList';
7
+ import { UnderlineStyle } from './buffer/Constants';
8
+ import { IBufferSet } from './buffer/Types';
9
+ import { IParams } from './parser/Types';
10
+ import { IMouseStateService, ICoreService, IOptionsService, IUnicodeService } from './services/Services';
11
11
  import { IFunctionIdentifier, ITerminalOptions as IPublicTerminalOptions } from '@xterm/xterm';
12
- import type { Emitter, IEvent } from 'common/Event';
12
+ import type { Emitter, IEvent } from './Event';
13
13
 
14
14
  export interface ICoreTerminal {
15
15
  mouseStateService: IMouseStateService;
@@ -6,4 +6,4 @@
6
6
  /**
7
7
  * The xterm.js version. This is updated by the publish script from package.json.
8
8
  */
9
- export const XTERM_VERSION = '6.1.0-beta.256';
9
+ export const XTERM_VERSION = '6.1.0-beta.258';
@@ -3,8 +3,8 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { CHAR_DATA_CODE_INDEX, NULL_CELL_CODE, WHITESPACE_CELL_CODE } from 'common/buffer/Constants';
7
- import { IBufferService } from 'common/services/Services';
6
+ import { CHAR_DATA_CODE_INDEX, NULL_CELL_CODE, WHITESPACE_CELL_CODE } from './buffer/Constants';
7
+ import { IBufferService } from './services/Services';
8
8
 
9
9
  export function updateWindowsModeWrappedState(bufferService: IBufferService): void {
10
10
  // Winpty does not support wraparound mode which means that lines will never
@@ -3,8 +3,8 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { IAttributeData, IColorRGB, IExtendedAttrs } from 'common/Types';
7
- import { Attributes, FgFlags, BgFlags, UnderlineStyle, ExtFlags } from 'common/buffer/Constants';
6
+ import { IAttributeData, IColorRGB, IExtendedAttrs } from '../Types';
7
+ import { Attributes, FgFlags, BgFlags, UnderlineStyle, ExtFlags } from './Constants';
8
8
 
9
9
  export class AttributeData implements IAttributeData {
10
10
  public static toColorRGB(value: number): IColorRGB {
@@ -3,20 +3,20 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { CircularList, IInsertEvent } from 'common/CircularList';
7
- import { Disposable, toDisposable } from 'common/Lifecycle';
8
- import { IdleTaskQueue } from 'common/TaskQueue';
9
- import { IAttributeData, IBufferLine, ICellData, ICharset } from 'common/Types';
10
- import { ExtendedAttrs } from 'common/buffer/AttributeData';
11
- import { BufferLine, DEFAULT_ATTR_DATA } from 'common/buffer/BufferLine';
12
- import { BufferLineStringCache } from 'common/buffer/BufferLineStringCache';
13
- import { getWrappedLineTrimmedLength, reflowLargerApplyNewLayout, reflowLargerCreateNewLayout, reflowLargerGetLinesToRemove, reflowSmallerGetNewLineLengths } from 'common/buffer/BufferReflow';
14
- import { CellData } from 'common/buffer/CellData';
15
- import { NULL_CELL_CHAR, NULL_CELL_CODE, NULL_CELL_WIDTH, WHITESPACE_CELL_CHAR, WHITESPACE_CELL_CODE, WHITESPACE_CELL_WIDTH } from 'common/buffer/Constants';
16
- import { Marker } from 'common/buffer/Marker';
17
- import { IBuffer } from 'common/buffer/Types';
18
- import { DEFAULT_CHARSET } from 'common/data/Charsets';
19
- import { IBufferService, ILogService, IOptionsService } from 'common/services/Services';
6
+ import { CircularList, IInsertEvent } from '../CircularList';
7
+ import { Disposable, toDisposable } from '../Lifecycle';
8
+ import { IdleTaskQueue } from '../TaskQueue';
9
+ import { IAttributeData, IBufferLine, ICellData, ICharset } from '../Types';
10
+ import { ExtendedAttrs } from './AttributeData';
11
+ import { BufferLine, DEFAULT_ATTR_DATA } from './BufferLine';
12
+ import { BufferLineStringCache } from './BufferLineStringCache';
13
+ import { getWrappedLineTrimmedLength, reflowLargerApplyNewLayout, reflowLargerCreateNewLayout, reflowLargerGetLinesToRemove, reflowSmallerGetNewLineLengths } from './BufferReflow';
14
+ import { CellData } from './CellData';
15
+ import { NULL_CELL_CHAR, NULL_CELL_CODE, NULL_CELL_WIDTH, WHITESPACE_CELL_CHAR, WHITESPACE_CELL_CODE, WHITESPACE_CELL_WIDTH } from './Constants';
16
+ import { Marker } from './Marker';
17
+ import { IBuffer } from './Types';
18
+ import { DEFAULT_CHARSET } from '../data/Charsets';
19
+ import { IBufferService, ILogService, IOptionsService } from '../services/Services';
20
20
 
21
21
  export const MAX_BUFFER_SIZE = 4294967295; // 2^32 - 1
22
22
 
@@ -3,12 +3,12 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { CharData, IAttributeData, IBufferLine, ICellData, IExtendedAttrs } from 'common/Types';
7
- import { AttributeData } from 'common/buffer/AttributeData';
8
- import { CellData } from 'common/buffer/CellData';
9
- import { Attributes, BgFlags, CHAR_DATA_ATTR_INDEX, CHAR_DATA_CHAR_INDEX, CHAR_DATA_WIDTH_INDEX, Content, NULL_CELL_CHAR, NULL_CELL_CODE, NULL_CELL_WIDTH, WHITESPACE_CELL_CHAR } from 'common/buffer/Constants';
10
- import { stringFromCodePoint } from 'common/input/TextDecoder';
11
- import { StringBuilder } from 'common/StringBuilder';
6
+ import { CharData, IAttributeData, IBufferLine, ICellData, IExtendedAttrs } from '../Types';
7
+ import { AttributeData } from './AttributeData';
8
+ import { CellData } from './CellData';
9
+ import { Attributes, BgFlags, CHAR_DATA_ATTR_INDEX, CHAR_DATA_CHAR_INDEX, CHAR_DATA_WIDTH_INDEX, Content, NULL_CELL_CHAR, NULL_CELL_CODE, NULL_CELL_WIDTH, WHITESPACE_CELL_CHAR } from './Constants';
10
+ import { stringFromCodePoint } from '../input/TextDecoder';
11
+ import { StringBuilder } from '../StringBuilder';
12
12
 
13
13
  // Buffer memory layout:
14
14
  //
@@ -3,9 +3,9 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import type { IBufferLineStringCache, IBufferLineStringCacheEntry } from 'common/buffer/BufferLine';
7
- import { disposableTimeout } from 'common/Async';
8
- import { Disposable, MutableDisposable, toDisposable, type IDisposable } from 'common/Lifecycle';
6
+ import type { IBufferLineStringCache, IBufferLineStringCacheEntry } from './BufferLine';
7
+ import { disposableTimeout } from '../Async';
8
+ import { Disposable, MutableDisposable, toDisposable, type IDisposable } from '../Lifecycle';
9
9
 
10
10
  const enum Constants {
11
11
  CACHE_TTL_MS = 15000
@@ -3,9 +3,9 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { BufferLine } from 'common/buffer/BufferLine';
7
- import { CircularList } from 'common/CircularList';
8
- import { IBufferLine, ICellData } from 'common/Types';
6
+ import { BufferLine } from './BufferLine';
7
+ import { CircularList } from '../CircularList';
8
+ import { IBufferLine, ICellData } from '../Types';
9
9
 
10
10
  export interface INewLayoutResult {
11
11
  layout: number[];
@@ -3,12 +3,12 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { Disposable, MutableDisposable } from 'common/Lifecycle';
7
- import { IAttributeData } from 'common/Types';
8
- import { Buffer } from 'common/buffer/Buffer';
9
- import { IBuffer, IBufferSet } from 'common/buffer/Types';
10
- import { IBufferService, ILogService, IOptionsService } from 'common/services/Services';
11
- import { Emitter } from 'common/Event';
6
+ import { Disposable, MutableDisposable } from '../Lifecycle';
7
+ import { IAttributeData } from '../Types';
8
+ import { Buffer } from './Buffer';
9
+ import { IBuffer, IBufferSet } from './Types';
10
+ import { IBufferService, ILogService, IOptionsService } from '../services/Services';
11
+ import { Emitter } from '../Event';
12
12
 
13
13
  /**
14
14
  * The BufferSet represents the set of two buffers used by xterm terminals (normal and alt) and
@@ -3,10 +3,10 @@
3
3
  * @license MIT
4
4
  */
5
5
 
6
- import { CharData, ICellData, IExtendedAttrs } from 'common/Types';
7
- import { stringFromCodePoint } from 'common/input/TextDecoder';
8
- import { CHAR_DATA_CHAR_INDEX, CHAR_DATA_WIDTH_INDEX, CHAR_DATA_ATTR_INDEX, Content } from 'common/buffer/Constants';
9
- import { AttributeData, ExtendedAttrs } from 'common/buffer/AttributeData';
6
+ import { CharData, ICellData, IExtendedAttrs } from '../Types';
7
+ import { stringFromCodePoint } from '../input/TextDecoder';
8
+ import { CHAR_DATA_CHAR_INDEX, CHAR_DATA_WIDTH_INDEX, CHAR_DATA_ATTR_INDEX, Content } from './Constants';
9
+ import { AttributeData, ExtendedAttrs } from './AttributeData';
10
10
  import type { IBufferCell as IBufferCellApi } from '@xterm/xterm';
11
11
 
12
12
  /**