I cannot figure out, how to create a scrollable box with blessed.
https://github.com/chjj/blessed
According to the docs, it should be like this:
"use strict";
const blessed = require('blessed');
const screen = blessed.screen({
smartCSR: true
});
let box = blessed.box({
top: 0,
left: 0,
width: '80%',
height: '80%',
style: {
bg: 'red'
},
alwaysScroll:true,
scrollable: true,
scrollbar: true
});
screen.append(box);
screen.render();
for (let i = 0; i < 200; i++) {
box.insertLine(0, 'texting ' + i);
box.screen.render();
}
The box window shows, it gets filled, but no scrollbar. What am i missing?