Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add class for blinking text control code (\x1b[5m) to DOM renderer#5119

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
CodeGuro wants to merge7 commits intoxtermjs:master
base:master
Choose a base branch
Loading
fromCodeGuro:text-blinker

Conversation

@CodeGuro
Copy link

My company happened to need the blinking text escape code, so I added it to the DOM renderer.

UNDERLINE_CLASS='xterm-underline',
OVERLINE_CLASS='xterm-overline',
STRIKETHROUGH_CLASS='xterm-strikethrough',
BLINK_CLASS='xterm-blink',
Copy link
Member

Choose a reason for hiding this comment

The 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

UNDERLINE_CLASS='xterm-underline',
OVERLINE_CLASS='xterm-overline',
STRIKETHROUGH_CLASS='xterm-strikethrough',
BLINK_CLASS='xterm-blink',
Copy link
Member

Choose a reason for hiding this comment

The 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:

exportinterfaceIDecorationServiceextendsIDisposable{
serviceBrand:undefined;
readonlydecorations:IterableIterator<IInternalDecoration>;
readonlyonDecorationRegistered:Event<IInternalDecoration>;
readonlyonDecorationRemoved:Event<IInternalDecoration>;
registerDecoration(decorationOptions:IDecorationOptions):IDecoration|undefined;

UNDERLINE_CLASS='xterm-underline',
OVERLINE_CLASS='xterm-overline',
STRIKETHROUGH_CLASS='xterm-strikethrough',
BLINK_CLASS='xterm-blink',
Copy link
Member

Choose a reason for hiding this comment

The 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.

Comment on lines +62 to +71
constisWindows=process.platform==='win32';
constterm=pty.spawn(isWindows ?'pwsh.exe' :'bash',[],{
name:'xterm-256color',
cols:cols??80,
rows:rows??24,
cwd:process.platform==='win32' ?undefined :env.PWD,
cwd:isWindows ?undefined :env.PWD,
env,
encoding:USE_BINARY ?null :'utf8'
encoding:USE_BINARY ?null :'utf8',
useConpty:isWindows,
useConptyDll:isWindows,
Copy link
Member

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.

@TyriarTyriar marked this pull request as draftSeptember 29, 2024 14:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@TyriarTyriarTyriar requested changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@CodeGuro@Tyriar

[8]ページ先頭

©2009-2025 Movatter.jp