Daniel Imms
804ff187fa
Merge pull request #4856 from alan-agius4/alan-agius4-patch-1
...
fix: use globalThis instead of self to address non Browser consumption
2023-10-30 09:36:08 -07:00
Alan Agius
de1304d19e
fix: use globalThis instead of self to address non Browser consumption
...
Currently using this package in a non Browser env will cause an error as Webpack will emit `self` which does not exist in all envs such as Node.js and Workers.
This commit updates Webpack and force it to use `globalThis`. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
2023-10-30 10:44:18 +01:00
Ayman Bagabas
96fcfbded1
Merge branch 'master' into osc52
2023-10-20 13:47:45 -07:00
Daniel Imms
9fff1e6e44
Merge pull request #4851 from davidfiala/fix-xterm-node21
...
proper isNode detection for node v21.0.0
2023-10-19 11:38:49 -07:00
David Fiala
0d0166b4bc
provide a declaration for 'process' needed for nodejs detect
...
We provide no further type information as it will not be used except for a presence check for nodejs detection.
2023-10-19 11:19:27 -07:00
David Fiala
6c5fb36c36
proper isNode detection for node v21.0.0
2023-10-19 09:52:29 -07:00
Daniel Imms
1c880f5199
Merge pull request #4849 from xtermjs/dependabot/npm_and_yarn/babel/traverse-7.23.2
...
Bump @babel/traverse from 7.22.8 to 7.23.2
2023-10-19 09:39:44 -07:00
dependabot[bot]
4681b319ca
Bump @babel/traverse from 7.22.8 to 7.23.2
...
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse ) from 7.22.8 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse )
---
updated-dependencies:
- dependency-name: "@babel/traverse"
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-19 11:47:16 +00:00
Daniel Imms
78a6aac409
Merge pull request #4846 from Tyriar/multi_window
...
Make xterm.js multi-window aware
2023-10-17 11:03:31 -07:00
Daniel Imms
20a26a6589
Remove unused imports
2023-10-17 10:54:29 -07:00
tisilent
a4e09d0ad8
add path to benchmark
2023-10-18 01:09:39 +08:00
tisilent
dfd5385602
add semicolon
2023-10-18 00:49:29 +08:00
tisilent
7dab4601d2
add public api
2023-10-18 00:29:56 +08:00
Daniel Imms
81e0718a74
Move window resize edge case into dpr monitor
2023-10-17 09:18:46 -07:00
Daniel Imms
6e12d94f11
Move window resize listeners over to onWindowChange
2023-10-17 09:10:04 -07:00
Daniel Imms
92535e539f
Inline ScreenDprMonitor into CoreBrowserService file
2023-10-17 08:56:02 -07:00
Daniel Imms
4cc51ca08f
Move ScreenDprMonitor into CoreBrowserService
2023-10-17 08:55:07 -07:00
Daniel Imms
63790f8854
Change ScreenDprMonitor to be event based
2023-10-17 08:49:28 -07:00
Daniel Imms
45605db3c5
Listen to window change and pass through to ScreenDprMonitor
2023-10-17 08:39:48 -07:00
Daniel Imms
c80453f602
Use correct document when creating elements
2023-10-16 11:09:36 -07:00
tisilent
eb4277e7bd
using ITerminal
2023-10-16 09:35:21 +08:00
Daniel Imms
4245283e05
Merge pull request #4844 from Tyriar/doc_override
...
Expose a documentOverride setting
2023-10-13 13:48:58 -07:00
Daniel Imms
41c62288f0
Expose a documentOverride setting
...
This lets the embedder choose which Document object to use for creating
elements, adding event listeners, etc. The reason this exists is because
when working with multiple windows it can be convenient to create all
elements under the primary window to make instanceof usage consistent.
See microsoft/vscode#195595
2023-10-13 13:41:53 -07:00
Jason Lin
c3aa63cffa
translateToString() adds one more entry to outColumns
...
Previously, for string 'ab好', outColumns=[0, 1, 2]. Now it becomes [0,
1, 2, 4]. This allows the user to know where does the last character
ends.
2023-10-11 16:23:03 +11:00
Jason Lin
1b940de0bf
Allow selection in the a11y tree and sync the selection to terminal
2023-10-11 16:23:03 +11:00
Jason Lin
023c778c4d
Send correct code for ctrl+[alt+]+backspace
...
We should send ^H (instead of ^?) for ctrl+backspace. This is what xterm
and gnome-terminal do.
2023-10-11 14:59:35 +11:00
tisilent
6b5fc260ca
Dom Renderer using SelectionRenderModel
2023-10-10 22:53:01 +08:00
tisilent
d3e075f37b
handle selection when resizing
2023-10-10 15:54:15 +08:00
Taige Wang
194b810ad5
Fix Webgl2 compatability on legacy Safari with webgl2 enabled
2023-10-08 13:03:28 +03:00
Ayman Bagabas
2a8ddcd508
Merge branch 'master' into osc52
2023-10-04 11:30:55 -07:00
Maël Nison
7cbaacde40
Fixes hex color serialization
2023-10-04 15:42:02 +02:00
Daniel Imms
34017f32fb
Merge pull request #4829 from xtermjs/dependabot/npm_and_yarn/get-func-name-2.0.2
...
Bump get-func-name from 2.0.0 to 2.0.2
2023-10-02 11:22:58 -07:00
Daniel Imms
57e2adc042
Merge branch 'master' into dependabot/npm_and_yarn/get-func-name-2.0.2
2023-10-02 11:16:37 -07:00
Daniel Imms
e9390d0d91
Merge pull request #4832 from Tyriar/node-pty-update
...
node-pty@1.1.0-beta5
2023-10-02 11:14:14 -07:00
Daniel Imms
f6c4aee928
Move benchmarks off removed node-pty apis
2023-10-02 11:05:33 -07:00
Daniel Imms
a673b110f5
node-pty@1.1.0-beta5
...
This is needed to get the build working on the newly updated GH actions runners
2023-10-02 07:27:10 -07:00
tisilent
cfde4d634f
Check option changes
2023-10-01 20:39:10 +08:00
Per Bothner
4e4110aeb4
Merge branch 'master' into setcell-refactor
2023-09-28 10:46:03 -07:00
dependabot[bot]
4149aa0945
Bump get-func-name from 2.0.0 to 2.0.2
...
Bumps [get-func-name](https://github.com/chaijs/get-func-name ) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/chaijs/get-func-name/releases )
- [Commits](https://github.com/chaijs/get-func-name/commits/v2.0.2 )
---
updated-dependencies:
- dependency-name: get-func-name
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-27 21:02:12 +00:00
Daniel Imms
810cc1d47e
Merge pull request #4827 from Tyriar/tyriar/4821
...
Bring back search clearActiveDecoration
2023-09-27 08:04:30 -07:00
Daniel Imms
c08062420f
Bring back search clearActiveDecoration
...
This was removed accidentally in 57db72d
Fixes #4821
2023-09-27 07:56:31 -07:00
Per Bothner
bde7bdc11d
Change setCellFromCodePoint API and rename to setCellFromCodepoint
...
Replace fg, bg, and eAttrs parameters by single IAttributeData parameter.
In addition to making for a simpler/cleaner API, it also increases flexibility
for future CellData or BufferLine changes.
(Rename function to reduce risk of using accidentally using old function.)
Also removed redundant eraseAttr parameter in deleteCells, insertCells, and replaceCells.
2023-09-25 18:21:02 -07:00
Ayman Bagabas
d245e90185
Add playwright terminal test
2023-09-21 12:09:30 -04:00
Ayman Bagabas
092aeaeb6f
Fix rename clipboard selection for clarity
2023-09-21 10:33:44 -04:00
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
Daniel Imms
a3e933d98b
Merge pull request #4820 from Tyriar/4814
...
Don't re-render after parse is the viewport did not change
2023-09-20 06:51:08 -07:00
Daniel Imms
543b82567f
Don't re-render after parse is the viewport did not change
...
Fixes #4814
2023-09-20 06:43:21 -07:00
Daniel Imms
cfc94b332a
Merge pull request #4816 from tisilent/fix-domrenderer-selection-overflow
...
Add column restriction
2023-09-20 06:06:43 -07:00
tisilent
f391cf6d43
Add column restriction
2023-09-20 18:40:03 +08:00