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

Xterm 5 - bellSound/bellStyle options have been removed #73

Closed
javier-godoy opened this issue Dec 28, 2022 · 0 comments
Closed

Xterm 5 - bellSound/bellStyle options have been removed #73

javier-godoy opened this issue Dec 28, 2022 · 0 comments
Assignees

Comments

@javier-godoy
Copy link
Member

bellSound and bellStyle options have been removed from XTerm.js 5, in favor of Terminal.onBell API (xtermjs/xterm.js#3941) which is already available in XTerm.js 4.19.0

// before 5.0.0
term = new Terminal({
  bellStyle: 'sound'
});

// after 5.0.0
term = new Terminal();
term.onBell(() => {
  // Play a sound
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant