'Taking mouse input curses

Can anyone tell me how to take mouse input în Python curses? And if there is any way that I can create a custom cursor for the mouse inside the terminal when I run the program?

curses.set_curs_char('*')

Or something in this manner.



Solution 1:[1]

Try to take a look with following code

begin_x = 20 ; begin_y = 7
height = 5 ; width = 40
win = curses.newwin(height, width, begin_y, begin_x)

For more : https://docspy3zh.readthedocs.io/en/latest/howto/curses.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Software Tester at ExpandCart