Ayman Bagabas
b22762b472
Fix tsconfigs, IDisposable, and add comments
2023-09-21 10:26:46 -04:00
Ayman Bagabas
db5bfc7525
Add support to ANSI OSC52
...
Add support to ANSI OSC52 sequence to manipulate selection and clipboard
data. The sequence specs supports multiple clipboard selections but we
only support the common ones, system and primary clipboard selections.
This adds a new event listener to the common terminal module
`onClipboard` to allow external implementations to hook into it.
The addon uses the browser Clipboard API to read/write from and to the
clipboard. The default `ClipboardProvider` uses the browser Clipboard
API. This means it only supports read/write to and from the system
clipboard.
Reference: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands
Fixes: xtermjs#3260
Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com >
2023-09-20 17:46:52 -04:00
Thomas Zilz
aaadefa548
Move WidthCache measure container to helper container
2023-09-15 10:51:31 +02:00
Daniel Imms
b55d699451
Fix regression in force mouse selection
...
Shift+left click is means to force terminal selection and not passthrough
any mouse events, even if a mouse mode is enabled. The change this is
reverting from #4583 caused this feature to break by always installing a
global listener on Terminal.element so the SelectionService never got a
chance to cancel is.
Fixes #4781
2023-09-10 07:41:31 -07:00
Daniel Imms
57db72d287
More adoption of MutableDisposable
2023-08-27 06:55:16 -07:00
Daniel Imms
921da1a2ea
Ignore no-unused-vars in .api, organize all remaining imports
2023-08-23 04:47:53 -07:00
Daniel Imms
7b874473d3
Remove unneeded comments, headless options
2023-08-17 09:10:38 -07:00
Daniel Imms
9f3be5e28d
Simplify terminal interfaces
...
Fixes #4663
2023-08-15 07:49:31 -07:00
Daniel Imms
91c08ed48e
Fix clear leaving viewport in a bad state
...
Fixes #4603
2023-08-02 11:30:43 -07:00
Daniel Imms
acf53f69e0
Ensure viewport is correctly reset on term.reset
...
Part of #4603
2023-08-02 11:18:00 -07:00
Daniel Imms
44ced27bee
Add ignoreBracketedPasteMode option
...
Fixes #4588
2023-08-01 13:58:52 -07:00
Daniel Imms
e8a925b6af
Merge pull request #4583 from jerch/fix_mouse_tracking
...
fix mouse tracking behavior
2023-08-01 05:50:20 -07:00
Daniel Imms
1067ec19a8
Implement smooth scroll for pages/top/bottom, add viewport request event
2023-08-01 05:31:30 -07:00
Daniel Imms
2d7b531bba
Merge branch 'master' into #4121
2023-08-01 04:58:36 -07:00
Daniel Imms
5660c404f0
Differentiate special color indexes and others
2023-07-28 16:32:05 -07:00
Daniel Imms
79c1fff853
Add IntRange type for ColorIndex
...
Fixes #4614
2023-07-28 13:51:46 -07:00
Jörg Breitbart
65568f502e
fix #4582
2023-07-05 13:56:41 +02:00
tisilent
ce2d115087
Move logic to Viewport
2023-06-06 20:14:24 +08:00
tisilent
b7d73f63cd
Add smoothScroll to scrollLines
2023-04-19 15:48:12 +08:00
Daniel Imms
6997f1a940
Correct registerMarker docs
...
Fixes #4409
2023-03-31 11:55:30 -07:00
Megan Rogge
4037b943b9
remove AccessibleBuffer ( #4427 )
...
* remove AccessibleBuffer
* rm more
* Update src/browser/Terminal.ts
* rm css
2023-03-02 14:51:32 -06:00
Megan Rogge
d6599bc048
accessibilityBuffer -> accessibleBuffer (#4406 )
2023-02-08 21:48:20 +00:00
Megan Rogge
72a157df5e
add registerBufferElementProvider ( #4402 )
2023-02-07 09:56:23 -08:00
Megan Rogge
6daadc4c55
pull AccessibleBuffer out of AccessibilityManager ( #4400 )
2023-02-03 18:59:30 +00:00
Daniel Imms
5839accbf1
Use is prefix for boolean prop/getter
2023-02-02 06:12:04 -08:00
Megan Rogge
a9da61e605
accessibilityBuffer: textarea -> div & prevent mouse click from exiting ( #4389 )
2023-01-31 18:25:25 -06:00
Daniel Imms
41dc93a008
Prototype improved a11y buffer view ( #4340 )
2023-01-18 23:00:21 +00:00
Daniel Imms
880b726bcb
Merge pull request #4325 from Tyriar/4056
...
Fix canvas renderer selection not re-rendering sometimes
2022-12-16 09:39:28 -08:00
Daniel Imms
2bd9c4e839
Fix canvas renderer selection not re-rendering sometimes
...
Fixes #4056
2022-12-16 09:28:02 -08:00
Daniel Imms
0b5625581e
Merge pull request #4284 from JasonXJ/a11y-2
...
Fix a11y issues #4269
2022-12-16 08:57:55 -08:00
Jason Lin
9e84895141
polish
2022-12-07 10:12:43 +11:00
Jason Lin
73d20c1d3b
Add option scrollOnKeypress
...
Note that we also change the existing behavior a bit:
CoreService.triggerDataEvent() will not scroll to the bottom unless
`wasUserInput` is also true. This actually seems to be the intended
behavior according to the doc just above
ICoreService.triggerDataEvent().
2022-12-06 14:29:18 +11:00
Jason Lin
d177acccee
Fix a11y issues #4269
2022-12-02 18:35:09 +11:00
Daniel Imms
22e8a2f8e7
Remove old dimension properties
2022-10-15 18:07:05 -07:00
Daniel Imms
114924f3fa
Add eslint-plugin-jsdoc and enable check-param-names
2022-10-15 08:38:14 -07:00
Daniel Imms
1b13127f0b
Merge pull request #4195 from Tyriar/4190
...
Create onSpecificOptionChange and onMultipleOptionChange helpers
2022-10-09 11:04:59 -07:00
Daniel Imms
8ac88bc6bf
Move Terminal option updates into owning components
2022-10-09 09:07:01 -07:00
Daniel Imms
49a0904857
Move onSpecificOptionChange adoption
2022-10-09 08:07:43 -07:00
Simon Lamon
1c345bef48
Handle onWillFire if it fails, so it loads dom renderer
2022-10-09 15:01:15 +00:00
Daniel Imms
415100e8b8
Adopt onSpecificOptionChange
2022-10-09 07:46:10 -07:00
Daniel Imms
7f9e3b1225
Remove resolved todo
2022-10-08 14:09:00 -07:00
Daniel Imms
6e35bcd767
Use theme service in more places
2022-10-08 13:55:23 -07:00
Daniel Imms
80e474c6ad
Viewport listen to theme service
2022-10-08 13:31:31 -07:00
Daniel Imms
4dee0c5d4b
Build out theme service more
2022-10-08 12:15:21 -07:00
Daniel Imms
c4750eaf77
Create basic theme service
...
Part of #4184
2022-10-08 11:43:19 -07:00
Daniel Imms
5d8e4a0af4
Add lint rule to ensure _on prefix is only for event emitters
2022-10-08 11:05:52 -07:00
Daniel Imms
eecf52e949
Add lint rule to ensure on prefix is only for event emitters
...
Fixes #4183
2022-10-08 10:57:31 -07:00
Daniel Imms
00f6d3a88c
Register all event emitters, make some services disposable
2022-10-08 09:00:14 -07:00
Daniel Imms
ac659cb412
Prevent overriding of Disposable.dispose
...
A common mistake made was overriding dispose and not calling super.dispose,
so a TS trick is now used to move it to a readonly property instead of a
member method which prevents it being overridden.
2022-10-08 08:27:10 -07:00
Daniel Imms
ffa4d921bb
Merge remote-tracking branch 'upstream/master' into renderer_before_open
2022-10-07 10:10:24 -07:00