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

On Scroll it Prints Characters #413

Open
organic-scholar opened this issue May 6, 2021 · 1 comment
Open

On Scroll it Prints Characters #413

organic-scholar opened this issue May 6, 2021 · 1 comment

Comments

@organic-scholar
Copy link

organic-scholar commented May 6, 2021

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
Copy link

lewispeel commented Dec 22, 2021

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();

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

2 participants