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.setOption is not a function #4256

Closed
sunkuangdong opened this issue Nov 9, 2022 · 4 comments
Closed

xterm.setOption is not a function #4256

sunkuangdong opened this issue Nov 9, 2022 · 4 comments
Labels
type/question A question on how to use the library

Comments

@sunkuangdong
Copy link

sunkuangdong commented Nov 9, 2022

Details

  • Browser and browser version:
  • OS version: Windows 11
  • xterm.js version: 5.0.0

Steps to reproduce

  1. image
  2. It is my code:
  3. xterm.setOption("theme", {
    "background": "#FFFCF3",
    "foreground": "#444444",
    "selection": "rgba(188,214,141, 0.4)",
    "cursor": "#41A863",
    "yellow": "#657B83",
    "brightYellow": "#657B83"
    });
@Tyriar
Copy link
Member

Tyriar commented Nov 9, 2022

@Tyriar Tyriar closed this as completed Nov 9, 2022
@Tyriar Tyriar added the type/question A question on how to use the library label Nov 9, 2022
@jerch
Copy link
Member

jerch commented Nov 10, 2022

@Tyriar Should we update the docs page? It is still on 4.14 containing old API methods and properties.

@Tyriar
Copy link
Member

Tyriar commented Nov 10, 2022

@jerch there's been some deployment problems which I can't work around by myself. I updated the repo to be on v5 and emailed Paris about the deployment issue.

@daonb
Copy link

daonb commented Apr 17, 2023

Just upgrade to 5.0 and got bitten by this. Here's the excerpt from the changlog:

// before 5.0.0
term.setOption('scrollback', 1000);
console.log(term.getOption('scrollback'));

// after 5.0.0
term.options.scrollback = 1000;
console.log(term.options.scrollback);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/question A question on how to use the library
Projects
None yet
Development

No branches or pull requests

4 participants