I want to solve a pretty easy problem. I just want to detect a mouse click under Ubuntu Server(without GUI respectively windows management). Therefore, I use Ncurses and following code snippet, but it doesn't detect any mouse actions. I looked up the web for 2 days now without success. would be great to get your help.
I don't think there's any sort of guarantee that "button 2" has to be right click.
I think you're supposed to use wgetch rather than getch though I can't tell for sure cause I never actually used curses. (Is it actually useful for anything other than roguelikes, vim and emacs?)
The wgetch() function is for windows use only, right? since I have no window in the terminal mode this one will not work.
The button itself doesn't make a big difference a, I tried every button and still no output.