Skip to content

Update xterm.js to 6.0.0 - #16820

Merged
gtritchie merged 5 commits into
mainfrom
feature/xterm-5
Jan 13, 2026
Merged

gtritchie merged 5 commits into
mainfrom
feature/xterm-5

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Summary

  • Update xterm.js from 4.9.0 to 6.0.0 (@xterm/xterm)
  • Update addon packages to new scoped names (@xterm/addon-fit, @xterm/addon-web-links)
  • Add WebGL addon (@xterm/addon-webgl) for GPU-accelerated rendering
  • Use system bell sound on RStudio Desktop instead of synthesized beep

Changes

xterm.js 6.0 Migration

  • Package names: Migrated from xterm to @xterm/xterm (and addons)
  • API changes: Replaced deprecated setOption() with options property access
  • Removed options: bellStyle, windowsMode, rendererType (all deprecated/removed in xterm 6.0)
  • Bell handling: Now uses onBell event callback instead of bellStyle option

Rendering

  • Added WebGL addon support for GPU-accelerated rendering (controlled by "Hardware acceleration" preference)
  • Set lineHeight: 1.0 for proper ASCII art / box-drawing character rendering
  • Added customGlyphs: true for WebGL renderer to draw block characters at exact cell size
  • Added performance options: smoothScrollDuration: 0, minimumContrastRatio: 1

System Bell

  • RStudio Desktop now uses the operating system's native alert sound via Electron's shell.beep()
  • RStudio Server falls back to Web Audio API synthesized tone

Files Changed

  • tools/build-xterm - Updated package names and versions
  • XTermNative.java - New API, WebGL addon methods, bell handler
  • XTermOptions.java - Removed deprecated options, added performance options
  • XTermWidget.java - WebGL enable/disable methods
  • XTermTheme.java - Fixed line height for proper character rendering
  • TerminalSession.java - Bell handling, WebGL preference, system beep
  • TerminalPane.java - Updated XTermOptions.create() call
  • DesktopFrame.java - Added beep() method
  • desktop-bridge.ts / gwt-callback.ts - Native beep support

Test plan

  • Open terminal, verify it displays correctly
  • Test with "Hardware acceleration" enabled (WebGL) and disabled (DOM)
  • Verify ASCII art renders without gaps (e.g., run claude to see logo)
  • Test terminal bell sound with echo -e '\a'
  • Verify bell preference (audible bell on/off) works

🤖 Generated with Claude Code

@posit-snyk-bot

posit-snyk-bot commented Jan 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

4 participants