@xterm/xterm 5.6.0-beta.71 → 5.6.0-beta.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/xterm",
3
3
  "description": "Full xterm terminal, in your browser",
4
- "version": "5.6.0-beta.71",
4
+ "version": "5.6.0-beta.73",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -107,5 +107,5 @@
107
107
  "ws": "^8.2.3",
108
108
  "xterm-benchmark": "^0.3.1"
109
109
  },
110
- "commit": "5018a07f3c2e243740a9f2cdd55fe8d8ba9f5f63"
110
+ "commit": "d5a2fed6792e987fc98eef6cd86fdcac0377cc9f"
111
111
  }
@@ -437,7 +437,7 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
437
437
  this.screenElement.appendChild(this._helperContainer);
438
438
  fragment.appendChild(this.screenElement);
439
439
 
440
- this.textarea = this._document.createElement('textarea');
440
+ const textarea = this.textarea = this._document.createElement('textarea');
441
441
  this.textarea.classList.add('xterm-helper-textarea');
442
442
  this.textarea.setAttribute('aria-label', Strings.promptLabel.get());
443
443
  if (!Browser.isChromeOS) {
@@ -449,6 +449,8 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
449
449
  this.textarea.setAttribute('autocapitalize', 'off');
450
450
  this.textarea.setAttribute('spellcheck', 'false');
451
451
  this.textarea.tabIndex = 0;
452
+ this._register(this.optionsService.onSpecificOptionChange('disableStdin', () => textarea.readOnly = this.optionsService.rawOptions.disableStdin));
453
+ this.textarea.readOnly = this.optionsService.rawOptions.disableStdin;
452
454
 
453
455
  // Register the core browser service before the generic textarea handlers are registered so it
454
456
  // handles them first. Otherwise the renderers may use the wrong focus state.
@@ -83,7 +83,7 @@ export class ThemeService extends Disposable implements IThemeService {
83
83
  colors.foreground = parseColor(theme.foreground, DEFAULT_FOREGROUND);
84
84
  colors.background = parseColor(theme.background, DEFAULT_BACKGROUND);
85
85
  colors.cursor = color.blend(colors.background, parseColor(theme.cursor, DEFAULT_CURSOR));
86
- colors.cursorAccent = parseColor(theme.cursorAccent, DEFAULT_CURSOR_ACCENT);
86
+ colors.cursorAccent = color.blend(colors.background, parseColor(theme.cursorAccent, DEFAULT_CURSOR_ACCENT));
87
87
  colors.selectionBackgroundTransparent = parseColor(theme.selectionBackground, DEFAULT_SELECTION);
88
88
  colors.selectionBackgroundOpaque = color.blend(colors.background, colors.selectionBackgroundTransparent);
89
89
  colors.selectionInactiveBackgroundTransparent = parseColor(theme.selectionInactiveBackground, colors.selectionBackgroundTransparent);