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

using bigtext gives crash #60

Open
GameKyuubi opened this issue Jul 4, 2023 · 0 comments
Open

using bigtext gives crash #60

GameKyuubi opened this issue Jul 4, 2023 · 0 comments

Comments

@GameKyuubi
Copy link

GameKyuubi commented Jul 4, 2023

blessed crashes when I set a content to bigtext with

TypeError: Cannot set properties of undefined (setting '0')

Runs:

let box = new blessed.bigtext({
   top: (i/number).toString() + '%',
   left: (j/number2).toString() + '%',
   width: (1/number2).toString() + '%',
   height: (1/number).toString() + '%'
});

Also runs:

let box = new blessed.box({
   top: (i/number).toString() + '%',
   left: (j/number2).toString() + '%',
   width: (1/number2).toString() + '%',
   height: (1/number).toString() + '%',
   content: 'X'
});

Doesn't run:

let box = new blessed.bigtext({
   top: (i/number).toString() + '%',
   left: (j/number2).toString() + '%',
   width: (1/number2).toString() + '%',
   height: (1/number).toString() + '%',
   content: 'X'
});
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

No branches or pull requests

1 participant