Simon Siefke
5f80fe00d5
fix: use replacesync instead of replace
2023-07-27 18:33:30 +02:00
Simon Siefke
b225b9a710
fix eslint
2023-07-27 17:39:15 +02:00
Simon Siefke
1c0a25d01b
feature: use constructed style sheets for dom render so that it works with csp style-src 'self'
2023-07-27 13:08:22 +02:00
Jörg Breitbart
90ccc815cb
more verbose comments to get the idea of the code
2023-06-05 12:23:56 +02:00
Jörg Breitbart
8de7bd5850
rename lneX to maxY
2023-06-04 21:11:55 +02:00
Jörg Breitbart
9fed8e2a3a
defensive underline event coords handling in DOM renderer
2023-06-04 21:06:26 +02:00
Daniel Imms
cdec1e5b03
Merge pull request #4526 from Tyriar/4499_overline
...
Add support for SGR 53 overline and SGR 55 not overline
2023-05-20 14:21:22 -07:00
Daniel Imms
2bfd95fe54
Add support for SGR 53, 55 overline
...
Specced in ECMA-48
2023-05-20 09:56:56 -07:00
Daniel Imms
e9b0593298
Merge pull request #4525 from Tyriar/4161_dim
...
Don't apply dim to background color
2023-05-20 09:43:16 -07:00
Daniel Imms
539fed4daa
Don't apply dim to background color
...
Fixes #4161
2023-05-20 08:13:50 -07:00
Daniel Imms
854e2736f6
Move inject into _handleOptionsChanged
2023-05-07 06:27:56 -07:00
Kelvin
2a9ec8fd1d
Re-render browser DOM style onOptionsChanged, fixes xtermjs#4474
...
Fixes https://github.com/xtermjs/xterm.js/issues/4474
2023-04-11 13:43:32 -04:00
tisilent
e1d852c86a
Adjust DomRenderer cursor style
2023-03-22 21:09:28 +08:00
tisilent
455c744ab1
Uniform cursor unfocused rendering. #4441
2023-03-22 20:54:58 +08:00
Daniel Imms
b3fb8db6b3
Replace dom helper with HTMLElement.remove()
2023-01-05 09:14:16 -08:00
Jörg Breitbart
becec91e98
better regexp, fix offset issue in #4294
2022-12-08 17:35:45 +01:00
Jörg Breitbart
3bf72cdefc
DOM renderer fix with much better performance
2022-12-05 15:50:29 +01:00
Jörg Breitbart
39c2e57ad3
hack around DOM renderer issue, fix api tests
2022-12-04 22:26:29 +01:00
Sebastian Malton
11e90591f9
Change clearing innerText to using replaceChildren to fix testing using jsdom
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2022-10-19 10:09:12 -04:00
Daniel Imms
22e8a2f8e7
Remove old dimension properties
2022-10-15 18:07:05 -07:00
Daniel Imms
89e0b87eac
Move to device/css in domrenderer
2022-10-15 14:22:04 -07:00
Daniel Imms
ddc4e75583
Add new dimensions properties, helper creation function
...
Part of #3925
2022-10-15 10:31:43 -07:00
Daniel Imms
a37ea14d10
Use options service in renderers
2022-10-09 10:57:49 -07:00
Daniel Imms
e47296c1b9
Use options service directly in renderers
2022-10-09 09:28:18 -07:00
Daniel Imms
6e35bcd767
Use theme service in more places
2022-10-08 13:55:23 -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
4d97729010
Revert "Merge pull request #4166 from Tyriar/event_with_emitter"
...
This reverts commit d22f7c9edd , reversing
changes made to 1f8e6f0952 .
2022-10-06 09:48:54 -07:00
Daniel Imms
c5d015c908
Merge branch 'master' into shared_cache
2022-10-04 13:54:14 -07:00
Daniel Imms
f6a61acc86
Merge branch 'master' into feature/lint-by-putout
2022-10-04 09:52:10 -07:00
Daniel Imms
590a8219e3
Merge remote-tracking branch 'upstream/master' into shared_cache
2022-10-02 13:42:44 -07:00
Daniel Imms
c5f9eacbb1
Move other render parts to shared folder
2022-10-01 17:41:16 -07:00
Daniel Imms
ed15a8e170
Create new event with emitter object to simplify code
2022-10-01 08:45:40 -07:00
Daniel Imms
cf9949840b
Use readonly over getter for exposing events
...
Fixes #4164
2022-10-01 07:52:26 -07:00
Daniel Imms
23328a394b
Fix trusted types in dom renderer
...
Fixes #4156
2022-09-27 13:01:36 -07:00
coderaiser
25eb7d6472
chore: lint using 🐊 Putout
2022-09-15 17:19:34 +03:00
Mihai Parparita
a39a468f19
Make terminal rendering work in popout windows
...
Add support for the parent element (what is passed to Terminal.open)
being in a different (same origin) window. Accesses to DOM APIs such
as requestAnimationFrame and devicePixelRatio thus need to be scoped
to the corrent window, instead of assuming that it's the same as the
window/global scope where the code is running.
This is done by inferring a parent window at the creation time, and
then storing it in CoreBrowserService, which is already passed to most
places that need it.
To catch future regressions, an ESLint rule that checks for global
accesses is added (it uses AST selectors via the no-restricted-syntax
rule).
This should also be applicable when the parent element is an iframe.
Fixes #3758
2022-09-08 16:59:31 -07:00
Daniel Imms
4a6e7bee21
Fix lgtm recommendations
2022-08-30 14:09:39 -07:00
Daniel Imms
0727741ca1
Remove iterators from IDecorationService
...
They're too low performance for typical use cases
Fixes #4079
2022-08-27 20:50:16 -07:00
Daniel Imms
bff529e1e2
Simplify dom tests and fix assertion
2022-07-30 23:41:08 -07:00
Daniel Imms
e0d4384d3c
Merge branch 'master' into underline
2022-07-30 06:40:41 -07:00
Daniel Imms
ff33834eb2
Merge branch 'master' into inactiveSelection
2022-07-29 14:51:22 -07:00
Daniel Imms
b0c29cac9a
Merge pull request #3932 from Tyriar/tyriar/dim_bg
...
Fix inverse dim rendering on canvas+webgl
2022-07-29 14:50:47 -07:00
Daniel Imms
6493679b2e
Inactive selection bg in dom renderer
...
Part of #3803
2022-07-29 11:00:36 -07:00
Daniel Imms
9cb25fbf06
Rename ITheme.selection to selectionBackground
...
This makes it consistent with selectionForeground and other theme keys and
as a result will make the API easier to work with, especially when inactive
selection is done (#3803 )
2022-07-29 10:34:27 -07:00
Daniel Imms
d2be5f992a
Merge remote-tracking branch 'upstream/master' into underline
2022-07-28 07:01:41 -07:00
Daniel Imms
84b259dfa5
Merge remote-tracking branch 'upstream/master' into tyriar/dim_bg
2022-07-28 06:57:27 -07:00