neo-blessed icon indicating copy to clipboard operation
neo-blessed copied to clipboard

using bigtext gives crash

Open GameKyuubi opened this issue 1 year ago • 0 comments

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'
});

GameKyuubi avatar Jul 04 '23 22:07 GameKyuubi