Daniel Imms and Cursor
80468eeb4c
fix(browser): clear idle blink timer when handle is 0
...
_clearIdleTimer() used truthiness on _idleTimeout, so a setTimeout
handle of 0 would not be cleared. Compare against undefined, consistent
with RenderDebouncer rAF handling.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-01 15:28:07 +00:00
Daniel Imms and Cursor
17ad33dc3d
Remove TypeScript path mappings in favor of relative imports
...
Fixes https://github.com/xtermjs/xterm.js/issues/5896
TypeScript path mappings for common/*, browser/*, and headless/*
were not rewritten in emitted JavaScript, which forced webpack resolve
aliases and NODE_PATH workarounds so runtime could resolve modules.
That added build complexity and broke tooling such as ESLint import/no-cycle.
Changes:
- Convert ~750 imports across src/, addons/, and test/ to relative paths
- Remove common/browser/headless paths and src catch-all mappings from tsconfigs
(keep @xterm/addon-* demo and addon typings paths)
- Remove webpack resolve.alias for common, browser, headless, and vs
- Drop NODE_PATH from unit tests, benchmarks, and VS Code launch config
- Fix addon-image IIPImageStorage to import ./Types after removing catch-all *
Verified: npm run build, esbuild, package, package-headless
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-31 09:16:10 -07:00
Daniel Imms
80debafa11
Convert a lot of top level consts to const enums
2026-05-02 06:44:25 -07:00
Daniel Imms
5c2b19f2c8
Only update necessary DOM range on selection change
...
Fixes #4633
2026-03-12 11:36:33 +09:00
Daniel Imms
e7a4578933
Don't apply color to the spans
2026-03-11 16:01:41 +09:00
Daniel Imms
a05a3321d5
Apply font styles directly to spans
...
The universal selector was overriding this since the font styles
only applied to the div, not the span.
Fixes #5675
2026-03-11 13:44:22 +09:00
Daniel Imms
6ef653e589
Merge remote-tracking branch 'upstream/master' into de_vs
2026-02-03 07:05:50 -08:00
Daniel Imms
205cf6089d
Prevent blink interval from running unless needed
...
Part of #944
2026-02-03 05:07:40 -08:00
Daniel Imms
f3a7cac49f
Handle options within blink state manager
2026-02-03 03:55:25 -08:00
Daniel Imms
0d2a58c9d0
Clean up lifecycle of blink manager
2026-02-03 03:48:28 -08:00
Daniel Imms
8a00898533
Implement blink rendering
...
Fixes #944
2026-02-03 03:46:21 -08:00
Daniel Imms
eea03cf0a9
Use lightweight versions of most vs/ imports
2026-01-31 22:52:19 -08:00
Daniel Imms
e8d99d50a6
Remove vs dependency in common
...
Fixes #5631
2026-01-30 06:03:16 -08:00
Daniel Imms
a513120348
Get dom/width cache tests passing in node
2025-12-30 03:32:34 -08:00
Daniel Imms
4985c9f3f9
Use shared constant for idle timeout
2025-12-28 13:37:25 -08:00
Daniel Imms
2e1651badd
Pull dom renderer blink management into class
2025-12-28 13:35:57 -08:00
Daniel Imms
7d1f74fb8b
Use const enums for constants
2025-12-28 13:33:51 -08:00
Daniel Imms
f8c1f5a32f
Add idle timeout which pauses cursor blink
...
Fixes #4628
2025-12-28 13:30:58 -08:00
Daniel Imms
ce095b3593
Merge pull request #5249 from jtbandes/fix-click-not-delivered
...
Fix click event bug caused by DomRenderer replaceChildren behavior
2024-12-20 12:41:52 -08:00
Daniel Imms
b579649a39
Revert to cursor options after DECSCUSR 0
...
Fixes #3293
2024-12-20 10:34:05 -08:00
Jacob Bandes-Storch
1978399259
Fix click event bug caused by DomRenderer replaceChildren behavior
2024-12-13 13:57:17 -08:00
Daniel Imms
144bdb5dd0
Move over to vs disposables
2024-07-14 16:19:20 -07:00
Daniel Imms
9712057b91
Remove the canvas renderer
...
Fixes #4779
2024-07-14 10:48:39 -07:00
Daniel Imms
90ff6f3d06
Migrate most EventEmitter to base/ Emitter
2024-07-14 07:41:56 -07:00
Daniel Imms
a7df139c46
Merge branch 'master' into fix-#4917
2024-04-21 07:38:10 -07:00
Daniel Imms
a4f1299f42
Special case cursor block blink to not use important
...
Fixes #4987
2024-03-16 11:07:05 -07:00
Daniel Imms
7b76ca7e49
Make dom rendere animation classes more readable
2024-03-16 09:57:23 -07:00
Daniel Imms
18147b2134
Fix bar blink animation
2024-03-16 09:55:20 -07:00
Daniel Imms
c78af2b448
Fix dom cursor blink animation
...
Fixes #4987
Doesn't seem to regress #4773 which caused this issue
2024-03-16 09:49:36 -07:00
tisilent
b1d9b4751d
Check after updating the SelectionRenderModel
2024-01-01 22:25:54 +08: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
Thomas Zilz
aaadefa548
Move WidthCache measure container to helper container
2023-09-15 10:51:31 +02:00
Daniel Imms
3b15fb6211
Fix block cursor rendering in DOM renderer
...
Fixes #4773
2023-09-10 08:27:18 -07:00
tisilent
393a8b3a86
When DomRenderer blue,perform rendering.
2023-09-08 18:08:14 +08:00
tisilent
c03cb2b016
When DomRenderer focus,render the cursor line.
2023-09-07 23:44:36 +08:00
Daniel Imms
843bdc4d55
Revert "Merge pull request #4611 from SimonSiefke/constructed-stylesheets"
...
This reverts commit 5889344dd2 , reversing
changes made to 679c149164 .
2023-08-15 08:33:42 -07:00
Daniel Imms
530f758905
Restrict comments to 100 characters
...
This is a rule I try enforce in PR but it's a bit of a hassle, this will
give a lint warning when it happens resulting in:
- Yellow underline in supported editors when eslint is installed
- Compilation will succeed since it's a warning not an error
- CI will fail as it does not allow lint warnings
Special case comments are ignored which includes @vt comments, table
comments and commented out code.
2023-08-12 09:04:41 -07:00
tisilent
5c1e6dce99
Add block to cursorInactiveStyle,
...
change line to bar
2023-08-11 11:36:40 +08:00
tisilent
0321bcb715
Remove special classes.
...
Add xterm-cursor-outline class.
2023-08-11 09:40:06 +08:00
tisilent
482dad3036
Add cursorInactiveStyle option
2023-08-10 16:11:04 +08:00
Jörg Breitbart
ae84ee39f3
Merge branch 'master' into faster_dom
2023-08-01 19:21:30 +02:00
jerch
73e60586c9
Merge pull request #4584 from dlech/fix-underline-style
...
use border-bottom instead of box-shadow for underline cursor in DOM renderer
2023-08-01 19:15:41 +02:00
Jörg Breitbart
c796514de8
apply weight settings in width cache
2023-07-31 16:49:58 +02:00
Jörg Breitbart
702c3578a3
re-add explicit span stylesheet
2023-07-30 19:03:54 +02:00
Jörg Breitbart
e9058b7498
implement default letter spacing
2023-07-30 18:46:33 +02:00
Jörg Breitbart
b358754b46
respect dpr/charWidth changes, more accurate base measuring
2023-07-30 13:27:28 +02:00
Jörg Breitbart
64d04f0712
optimization: remove document fragment
2023-07-29 23:58:15 +02:00
Jörg Breitbart
664a110fd1
Merge branch 'master' into faster_dom
2023-07-29 18:07:47 +02:00
Jörg Breitbart
3b5044b55b
readd doc notes on link underline handling
2023-07-29 17:54:14 +02:00