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

Mouse events not detected in windows #423

Open
bustawei opened this issue Jul 1, 2022 · 2 comments
Open

Mouse events not detected in windows #423

bustawei opened this issue Jul 1, 2022 · 2 comments

Comments

@bustawei
Copy link

bustawei commented Jul 1, 2022

Hi everyone
I have a project using blessed to provide a dashboard in the console
everyhting work as expected in linux and mac

But in windows , i tried the default terminal , the powershell ,msys mingw shells and not one of those support mouse events (element click)
No errors logged , just element click is considered as a cursor pointing , even in text inputs , the focus on select is not working
Do we know if windows does not support element click or i am doing something wrong

Thanks

@bustawei
Copy link
Author

bustawei commented Jul 2, 2022

Some reference code :
this.screen = blessed.screen({ smartCSR: true, autoPadding: true });

this.menuBox = blessed.list({ align: 'left', mouse: true, label: 'MENU', border: 'line', style: { fg: 'green', bg: 'white', border: {fg: 'default',bg: 'default'}, selected: {bg: 'blue'} }, width: '30%', height: '39%', top: '21%', left: '3%', tags: true, invertSelected: false, items: ["♟ MY NODE DETAILS","▶ CONNECTED PEERS","✉ MY NETWORKS","✉ ALL NETWORKS","❤ ADDRESS BOOK","⚙ ETHEREUM ADDRESS","♦ VERIFIED ADDRESSES","✎ TWITTER"], scrollbar: {ch: ' ',track: {bg: 'blue'},style: {inverse: true}} });
And the event click handling
await myScreen.menuBox.on("element click",async function(element,mouse){ Do something });

@sfiedler0
Copy link

sfiedler0 commented Sep 29, 2022

It is possible that you have the QuickEdit mode enabled. I have programmed with VIM on Windows and I had the same problem. Then I right clicked on the "Title Bar" (for example, on cmd) and selected "Properties".
I clicked on "Options" and disabled QuickEdit mode. I pressed [ESC], tried again and it worked!

Perhaps it will solve the problem, if not, I don‘t know how to solve.

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