Skip to content
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

Remove a large portion of InputHandler's dependency on Terminal #2637

Merged
merged 19 commits into from
Dec 19, 2019

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Dec 19, 2019

Part of #1507

Behavior changes:

  • parser.reset() is now called when Terminal.reset is called (before it was only on RIS)
  • Calling Terminal.open(undefined|null) (compile error in strict TS) will no longer work, previously if it was opened on an element that parent would be a fallback

EventEmitter now support 2 arguments, allowing to pass in 2 primitives (start and end for request refresh). This can be extended to support more in the future as required.

@Tyriar Tyriar added this to the 4.4.0 milestone Dec 19, 2019
@Tyriar Tyriar self-assigned this Dec 19, 2019
@Tyriar Tyriar requested a review from jerch December 19, 2019 04:54
@Tyriar
Copy link
Member Author

Tyriar commented Dec 19, 2019

@jerch a quick once over might be a good idea if you have time, I think it's pretty solid and tests already caught a few problems during refactoring.

@Tyriar Tyriar merged commit 71a78cb into xtermjs:master Dec 19, 2019
@Tyriar Tyriar deleted the input_handler branch December 19, 2019 07:45
@jerch
Copy link
Member

jerch commented Dec 19, 2019

@Tyriar Guess its to late now 😄

Few remarks: Calling parser reset during Terminal.reset is a problem, if there is still data pending in the write buffers (which gets not cleared by Terminal.reset due to a previous issue with that). Basically we run into band synchronous vs. "do it right away" (JS calling synchronous) issues here. Since its a rather uncommon edge case I dont think we have to fix that right away, but should keep that in mind. A proper solution would need to specify whether an "intrusive" action like Terminal.reset should always be band- or JS-call sychronous (and all applied to all subactions as well).

Tyriar added a commit to Tyriar/xterm.js that referenced this pull request Dec 19, 2019
@Tyriar
Copy link
Member Author

Tyriar commented Dec 19, 2019

@jerch 👉 #2640

Tyriar added a commit to microsoft/vscode that referenced this pull request Dec 31, 2019
xterm-addon-webgl@0.5.0-beta.7

Diff: xtermjs/xterm.js@8341c35...2a9e16b

- Include  in word separators xtermjs/xterm.js#2583
- Remove unused imports/functions xtermjs/xterm.js#2585
- force alpha to 1 when using background color as inverted foreground color xtermjs/xterm.js#2560
- Fix minimumContrastRatio on dom/truecolor xtermjs/xterm.js#2602
- v4.3.0 xtermjs/xterm.js#2605
- Avoid roundtrip to browser when double-disposing. xtermjs/xterm.js#2616
- Allow the thickness of the bar cursor to be configured xtermjs/xterm.js#2590
- update version of node-pty xtermjs/xterm.js#2621
- Implement hidden in DOM and WebGL renderers xtermjs/xterm.js#2625
- Expose texture atlas as API and use in demo xtermjs/xterm.js#2626
- Webgl v0.4.1 xtermjs/xterm.js#2628
- Add Linode to real world uses xtermjs/xterm.js#2636
- Added Gus to list of xterm real-world users xtermjs/xterm.js#2631
- Remove a large portion of InputHandler's dependency on Terminal xtermjs/xterm.js#2637
- Move back to reseting parser only on RIS xtermjs/xterm.js#2640
- Set glyph fg color based on original bg, not selection xtermjs/xterm.js#2650
- format color value to style '#rrggbbaa' xtermjs/xterm.js#2629
- Use register over add for APIs returning disposables xtermjs/xterm.js#2651
- Standardize how colors helper lib is structured xtermjs/xterm.js#2653
- Fullwidth handling in buffer writes xtermjs/xterm.js#2644
- Target es5 in attach addon xtermjs/xterm.js#2654

Fixes #86194
Fixes #87918
Part of #87456
lemanschik pushed a commit to code-oss-dev/code that referenced this pull request Nov 25, 2022
xterm-addon-webgl@0.5.0-beta.7

Diff: xtermjs/xterm.js@8341c35...2a9e16b

- Include  in word separators xtermjs/xterm.js#2583
- Remove unused imports/functions xtermjs/xterm.js#2585
- force alpha to 1 when using background color as inverted foreground color xtermjs/xterm.js#2560
- Fix minimumContrastRatio on dom/truecolor xtermjs/xterm.js#2602
- v4.3.0 xtermjs/xterm.js#2605
- Avoid roundtrip to browser when double-disposing. xtermjs/xterm.js#2616
- Allow the thickness of the bar cursor to be configured xtermjs/xterm.js#2590
- update version of node-pty xtermjs/xterm.js#2621
- Implement hidden in DOM and WebGL renderers xtermjs/xterm.js#2625
- Expose texture atlas as API and use in demo xtermjs/xterm.js#2626
- Webgl v0.4.1 xtermjs/xterm.js#2628
- Add Linode to real world uses xtermjs/xterm.js#2636
- Added Gus to list of xterm real-world users xtermjs/xterm.js#2631
- Remove a large portion of InputHandler's dependency on Terminal xtermjs/xterm.js#2637
- Move back to reseting parser only on RIS xtermjs/xterm.js#2640
- Set glyph fg color based on original bg, not selection xtermjs/xterm.js#2650
- format color value to style '#rrggbbaa' xtermjs/xterm.js#2629
- Use register over add for APIs returning disposables xtermjs/xterm.js#2651
- Standardize how colors helper lib is structured xtermjs/xterm.js#2653
- Fullwidth handling in buffer writes xtermjs/xterm.js#2644
- Target es5 in attach addon xtermjs/xterm.js#2654

Fixes microsoft#86194
Fixes microsoft#87918
Part of microsoft#87456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants