xie jialong 努力鸭 and Daniel Imms
d15abd7f28
Update src/browser/renderer/shared/CellColorResolver.ts
...
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com >
2023-08-25 10:33:22 +08:00
tisilent
6ace416224
Add license header
2023-08-24 15:55:24 +08:00
tisilent
52c87bc8b3
Add tests for computeVarinatOffset
2023-08-24 14:46:30 +08:00
tisilent
edfacbb5c6
Adjusting the execution process
2023-08-24 11:54:18 +08:00
tisilent
564371eae7
Clean unused member
2023-08-24 11:38:51 +08:00
tisilent
e09ed98cf1
Merge branch 'underline-dotted' of https://github.com/tisilent/xterm.js into underline-dotted
2023-08-24 11:05:05 +08:00
tisilent
2b0106f7e2
Logic move to CellColorResolver
2023-08-24 10:57:05 +08:00
Daniel Imms
f5d128b0d5
Merge remote-tracking branch 'upstream/master' into pr/tisilent/4703
2023-08-23 05:02:07 -07:00
Daniel Imms
921da1a2ea
Ignore no-unused-vars in .api, organize all remaining imports
2023-08-23 04:47:53 -07:00
tisilent
c81dfee43c
Using ext to store variants.
2023-08-21 20:54:16 +08:00
tisilent
32da1d81d5
Use variants for underline dotted.
...
webgl
2023-08-21 19:09:02 +08:00
Daniel Imms
0b54c9a5d6
Add trace log level, traceCall decorator and use in webgl
...
- New 'trace' log level in the API, you should expect very spammy logs when
trace is on and filter them down. As opposed to 'debug' which should be more
readable.
- traceCall decorator logs the args and return value of the decorated method.
Wecan use this on key functions in various parts of the code to assist
debugging issues that are hard to reproduce such as #4665 .
- Decorated a few webgl render methods for #4665 .
- There's an early exit in traceCall when not on the trace log level so the
runtime impact when not in trace is negligable.
Part of #4665
2023-08-18 11:04:23 -07:00
Daniel Imms
c908eeed5c
Merge pull request #4667 from Dennnnny/fix-transparent-foreground-color
...
Fix transparent foreground color
2023-08-14 12:11:04 -07:00
dennnnny
855e911398
Fix transparent foreground color
2023-08-14 09:49:18 +08:00
Daniel Imms
1cef30cca0
Enforce half minimum contrast ratio for dim text
...
Provided MCR is not too high, this ensures dim text differs from normal
text and has a reasonable difference in contrast.
Fixes #4262
2023-08-13 11:27:57 -07:00
dennnnny
bef87403db
Fix force transparent foreground colors to be opaque
2023-08-13 17:52:49 +08: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
dennnnny
fb7349bc87
Fix transparent foreground color
2023-08-12 08:39:39 +08:00
Daniel Imms
07d187151e
Update src/browser/renderer/shared/TextureAtlas.ts
2023-08-11 09:50:22 -07:00
tisilent
f317b96262
Fix canvas underline is cut off.
2023-08-11 17:58:29 +08:00
tisilent
b8bf35be17
Add restrictToCellHeight,Restore abnormal format
2023-08-09 11:53:30 +08:00
tisilent
3ba579f680
fix double underline, upwards
2023-08-08 18:36:44 +08:00
Daniel Imms
6b33ac1e85
Share cursor blink state manager between canvas and webgl
...
This also focused the manager's creation on renderer start up, to ensure blink
works immediately.
2023-08-01 06:13:21 -07: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
eb56356133
Don't dodge overline, simplify drawing
2023-05-20 10:04:14 -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
8c9e44c219
Disallow glyphs to exceed atlas texture size
...
Fixes #4507
2023-05-09 07:35:41 -07:00
Starwort
f0edc1b613
Fix #4450
2023-03-27 09:56:17 +01:00
Daniel Imms
56734874ac
Include right part of wide char in underline gap
...
Fixes #4096
2022-12-24 07:30:26 -08:00
Daniel Imms
d17df65fad
Improve rendering of dotted underlines
...
Fixes #4060
2022-12-23 14:04:12 -08:00
Daniel Imms
c9c07aeabd
Support slash and triangle custom glyphs
...
This also fixes an issue with padding making glyphs regress
Fixes #4258
2022-12-14 13:15:05 -08:00
Daniel Imms
02d3ef599a
Fix internal usages that needed Required<ITerminalOptions>
2022-12-11 11:42:14 -08:00
Daniel Imms
1880399849
dirtyId -> version
2022-11-23 08:51:06 -08:00
Jean Pierre
d4ee0309d9
Fixes https://github.com/microsoft/vscode/issues/166158
2022-11-22 00:07:23 -05:00
Daniel Imms
97a0df260b
Remove unused event
2022-11-03 05:44:50 -07:00
Daniel Imms
d82da195f3
Remove atlas pages from demo when they're merged
2022-11-02 06:02:53 -07:00
Daniel Imms
c22e684904
Fix exception when last 4 smallest pages are merged
2022-11-02 05:40:13 -07:00
Daniel Imms
6406fd79c1
Enforce a maximum page merge amount
2022-11-02 05:28:47 -07:00
Daniel Imms
0271fdf49d
Merge 4 largest pages
2022-11-02 04:49:02 -07:00
Daniel Imms
805b41b80f
Keep merging default texture size pages
2022-11-01 10:26:48 -07:00
Daniel Imms
c9bacc80d7
Merge when max atlas pages is reached
2022-11-01 10:08:00 -07:00
Daniel Imms
54ee698ba6
Basic merging working
...
Part of #4243
2022-11-01 09:07:38 -07:00
Daniel Imms
4d05905736
Polish
2022-10-30 18:11:24 -07:00
Daniel Imms
e092ca70e1
Simplify page reuse/creation
2022-10-30 10:33:38 -07:00
Daniel Imms
0592837620
Fill pages to capacity
2022-10-30 10:21:17 -07:00
Daniel Imms
fc03a1698b
Share page creation code
2022-10-30 10:16:48 -07:00
Daniel Imms
c9ef4a8eb9
Increase texture size as it nears the maximum texture unit
...
#4243 would be a better, but more complicated, solution to this
2022-10-30 09:20:17 -07:00
Daniel Imms
846573bb01
Support up to maximum texture units (eg. 16 on my machine)
2022-10-30 03:16:29 -07:00