blessed icon indicating copy to clipboard operation
blessed copied to clipboard

Mouse events not detected in windows

Open bustawei opened this issue 3 years ago • 2 comments

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 avatar Jul 01 '22 21:07 bustawei

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

bustawei avatar Jul 02 '22 11:07 bustawei

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.

sfiedler0 avatar Sep 29 '22 13:09 sfiedler0