-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add class for blinking text control code (\x1b[5m) to DOM renderer #5119
base: master
Are you sure you want to change the base?
Changes from all commits
f0dc67a
4572037
abe0640
c2aee5b
dd54ef1
c6a50d5
4e97857
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -24,6 +24,7 @@ export const enum RowCss { | |||||||||||||
UNDERLINE_CLASS = 'xterm-underline', | ||||||||||||||
OVERLINE_CLASS = 'xterm-overline', | ||||||||||||||
STRIKETHROUGH_CLASS = 'xterm-strikethrough', | ||||||||||||||
BLINK_CLASS = 'xterm-blink', | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We'd also want the associated CSS class for this in xterm.css if we went with a class There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should also add an implementation on the webgl side for this so we're not merging in a partially complete feature. Probably the easiest way to implement this in such a way that would share the implementation across multiple renderers is to leverage the decorations service and have an interval to set the transparency of the decoration on and off periodically: xterm.js/src/common/services/Services.ts Lines 363 to 368 in cb3bd46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what the right default is for this, but regardless for accessibility reasons we will want to allow the embedder to disable blinking text. So I think we need some new option to drive this. |
||||||||||||||
CURSOR_CLASS = 'xterm-cursor', | ||||||||||||||
CURSOR_BLINK_CLASS = 'xterm-cursor-blink', | ||||||||||||||
CURSOR_STYLE_BLOCK_CLASS = 'xterm-cursor-block', | ||||||||||||||
|
@@ -300,6 +301,10 @@ export class DomRendererRowFactory { | |||||||||||||
classes.push(RowCss.STRIKETHROUGH_CLASS); | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
if (cell.isBlink()) { | ||||||||||||||
classes.push(RowCss.BLINK_CLASS); | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
// apply link hover underline late, effectively overrides any previous text-decoration | ||||||||||||||
// settings | ||||||||||||||
if (isLinkHover) { | ||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3190,11 +3190,6 @@ mustache@^4.2.0: | |
resolved "https://registry.yarnpkg.com/mustache/-/mustache-4.2.0.tgz#e5892324d60a12ec9c2a73359edca52972bf6f64" | ||
integrity sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ== | ||
|
||
nan@^2.17.0: | ||
version "2.18.0" | ||
resolved "https://registry.yarnpkg.com/nan/-/nan-2.18.0.tgz#26a6faae7ffbeb293a39660e88a76b82e30b7554" | ||
integrity sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w== | ||
|
||
[email protected]: | ||
version "3.3.3" | ||
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.3.tgz#fd8e8b7aa761fe807dba2d1b98fb7241bb724a25" | ||
|
@@ -3220,19 +3215,24 @@ neo-async@^2.6.2: | |
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" | ||
integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== | ||
|
||
node-addon-api@^7.1.0: | ||
version "7.1.1" | ||
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.1.tgz#1aba6693b0f255258a049d621329329322aad558" | ||
integrity sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ== | ||
|
||
node-preload@^0.2.1: | ||
version "0.2.1" | ||
resolved "https://registry.yarnpkg.com/node-preload/-/node-preload-0.2.1.tgz#c03043bb327f417a18fee7ab7ee57b408a144301" | ||
integrity sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ== | ||
dependencies: | ||
process-on-spawn "^1.0.0" | ||
|
||
[email protected]beta5: | ||
version "1.1.0-beta5" | ||
resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-1.1.0-beta5.tgz#364386b7058a93070234064f13164ec1ef914993" | ||
integrity sha512-j3QdgFHnLY0JWxztrvM3g67RaQLOGvytv+C6mFu0PqD+JILlzqfwuoyqRqVxdZZjoOTUXPfSRj1qPVCaCH+eOw== | ||
[email protected]beta19: | ||
version "1.1.0-beta19" | ||
resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-1.1.0-beta19.tgz#a74dc04429903c5ac49ee81a15a24590da67d4f3" | ||
integrity sha512-/p4Zu56EYDdXjjaLWzrIlFyrBnND11LQGP0/L6GEVGURfCNkAlHc3Twg/2I4NPxghimHXgvDlwp7Z2GtvDIh8A== | ||
dependencies: | ||
nan "^2.17.0" | ||
node-addon-api "^7.1.0" | ||
|
||
node-releases@^2.0.12: | ||
version "2.0.13" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good change, you can make a separate PR this node-pty stuff if you want to get it merged quickly.