Skip to content

How to set box exact height and width? #427

@lucentminds

Description

@lucentminds
const screen = blessed.screen();

screen.append(blessed.box({
   label: 'test 1',
   border: {
      type: 'line',
   },
   top: 0,
   left: 0,
   width: 10,
   height: 10,
}));

screen.render();

If I run this example script I get a rectangle that is taller than it is wide. How do I set the exact width and height of the box so that it's a square?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions