chjj / blessed

A high-level terminal interface library for node.js.
Other
11.2k stars 528 forks source link

On Scroll it Prints Characters #413

Open organic-scholar opened 3 years ago

organic-scholar commented 3 years ago

using the following code it renders an empty screen.

import blessed from 'blessed';
const screen = blessed.screen({smartCSR: true})
screen.render();

on mouse scroll over the empty screen, it prints

^[OB^[OB^[^[OB^[OA^[OA^[OA^[OA^[OA^[OA^[OA^[OA^[OA

How I can disable the printing of the above characters printing?

lewispeel commented 2 years ago

Not sure if you fixed this but I ended up just handling the mouse event from screen. Seems to work for me.

const screen = blessed.screen();
screen.on('mouse', () => {});
screen.key(['escape', 'q', 'C-c'], (ch, key) => process.exit(0));
screen.render();