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
Jason Lin
4752f99e03
Webgl cursor renderer makes sure a char is not drawn outside of the cell
2022-09-06 14:12:15 +10:00
Daniel Imms
e8e2f16cff
Merge remote-tracking branch 'upstream/master' into pr/silamon/4004
2022-09-02 13:05:52 -07:00
Daniel Imms
4a6e7bee21
Fix lgtm recommendations
2022-08-30 14:09:39 -07:00
Simon Lamon
a1385f589b
Required options
2022-08-05 16:16:12 +00:00
Daniel Imms
4ac8e4ca51
Remove reliance on core in some webgl parts
2022-07-29 11:09:19 -07:00
Daniel Imms
8b276c1a54
Merge remote-tracking branch 'upstream/master' into pr/SvanT/3919
2022-07-28 07:04:11 -07:00
Daniel Imms
1c6ce99419
Move canvas renderer contents into addon
2022-07-27 10:26:02 -07:00
Daniel Imms
7a17a26e18
Remove link matchers
...
Fixes #2703
2022-07-27 06:49:35 -07:00
Svante Boberg
078b83fcaf
Use disposal registration
2022-07-27 14:24:42 +02:00
Svante Boberg
c895f67fd8
Add missing webgl cursor blink disposal
...
Same disposal code as the non-webgl cursor blink layer
2022-07-27 00:00:41 +02:00
Daniel Imms
54cbbf600d
Dispose of webgl resources properly
...
Fixes #3889
2022-07-06 07:32:42 -07:00
儿时
1e8901630c
Replace all getOption/setOption usage with options
2022-03-02 11:25:20 +08:00
Daniel Steinberg
59f940c19c
Set text baseline conditionally by browser.
2021-10-22 19:20:21 +00:00
Megan Rogge
2445f35a32
Merge branch 'master' into cursor-blink
2021-10-21 12:37:38 -05:00
Megan Rogge and Daniel Imms
d2bcbc73d3
fixes #3517
...
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com >
2021-10-21 10:33:22 -07:00
Daniel Imms
0aaa20f873
Start of webgl integration
2021-08-18 07:31:35 -07:00
Daniel Imms
c1b4f4edb1
Fix webgl access of core service
2021-08-17 04:41:44 -07:00
Daniel Imms
0ceeb087e9
Use less than instead of non-integer check
...
Part of #3391
2021-07-16 13:25:56 -07:00
Daniel Imms
361998bd34
Fix cursor ghosting in canvas/webgl renderers
...
Fixes #3391
2021-07-16 10:08:36 -07:00
Daniel Imms
6b3fd2f31a
Merge branch 'master' into spacing_eslint
2021-04-02 07:45:31 -07:00
Daniel Imms
f19d7f0b70
Require spacing of objects outside of test files
2021-04-02 07:08:06 -07:00
Daniel Imms
a510ffb3c0
Use ideographic baseline for canvas
2021-04-01 17:10:14 -07:00
Daniel Imms
bdb438972f
Fix errors in Terminal and elsewhere
...
This was mostly ! to compel TS, we should actually fix this down the road
but that can come later.
2020-04-26 10:44:44 -07:00
Daniel Imms
4d01929503
Introduce ICoreTerminal
2020-04-26 10:11:24 -07:00
Daniel Imms
3a5def98e5
Correct selection types being optional
2020-04-25 06:56:00 -07:00
Daniel Imms
f2ed01993d
Track changes to hideUnderline
2020-04-18 06:18:01 -07:00
Daniel Imms
55f9203f60
Only fire IRenderService.onRender when buffer changes occurred
...
Fixes #2836
2020-04-11 09:51:28 -07:00
Daniel Imms
c63949f384
Merge branch 'master' into master
2020-04-10 09:37:51 -07:00
Daniel Imms
59d28e7b99
Use browser types instead of nodejs
2020-04-06 05:33:09 -07:00
Daniel Imms
8b5a133106
Pause cursor render layer before resuming
...
Fixes #2764
2020-04-06 05:32:11 -07:00
Charles Wei
88d2f26269
Merge branch 'master' into master
2020-04-05 12:15:37 +08:00
Daniel Imms
bbd83b9dba
Migrate whitespace tslint rule
2020-03-28 07:34:49 -07:00
Daniel Imms
88a50d3779
Fix most rules
2020-03-28 06:51:36 -07:00
javacs3
44ff7b0f5f
change buffer interface from IBuffer to IBufferNamespace
2020-03-22 12:13:52 +08:00
Jörg Breitbart
db304513b1
unify naming, adjust addon version, fix interface description
2020-02-22 20:30:36 +01:00
Jörg Breitbart
8d1b4bf78f
fix webgl renderer
2020-02-22 20:18:45 +01:00
Daniel Imms
b18ded0e2d
Rename tooltip to hover/leave
2020-02-07 09:55:06 -08:00
Jon Bockhorst
a95b1b4881
Merge branch 'master' of https://github.com/xtermjs/xterm.js into linkParser
2020-02-04 11:40:48 -06:00
Nick Pezza
97dc61e65f
s/cursorBarWidth/cursorWidth
2019-12-07 15:40:02 -05:00
Nick Pezza
48aebec01f
Remove default width value
2019-12-07 15:39:34 -05:00
Nick Pezza
c630b92772
Allow the thickness of the bar cursor to be configured
2019-11-30 14:40:45 -05:00
Daniel Imms
e89d79b879
Remove unused code
2019-11-10 11:33:41 -08:00
Daniel
f93939ef20
Merge remote-tracking branch 'ups/master' into pr/jmbockhorst/2530
2019-11-08 08:46:09 -08:00
Daniel Imms
3bf149bbc5
Fix webgl cursor
2019-11-07 18:46:56 -08:00
Daniel Imms
873de2b127
Move cursor render layer to browser
2019-11-07 18:39:46 -08:00
Daniel Imms
1e1038b2c7
Remove renderer circular dep on renderservice
...
Also fix super.dispose not being called correctly on RenderService
2019-11-07 18:09:40 -08:00
Jon Bockhorst
0c5962c538
Added support for a basic link parser
2019-11-01 00:54:31 -05:00
JeffreyCA
7c982fc0ce
Fix lint warnings
2019-10-07 22:51:03 -07:00
JeffreyCA
1eb6e37187
Refresh terminal even if blinking is enabled so cursor changes are immediately visible
2019-10-07 22:36:37 -07:00