79610685

Date: 2025-05-07 13:51:24
Score: 1
Natty:
Report link

Use curses to track mouse without selection:

import curses def main(stdscr): curses.mousemask(-1) while True: if stdscr.getch() == curses.KEY_MOUSE: _, x, y, _, _ = curses.getmouse() stdscr.addstr(0, 0, f"Mouse: {x},{y}") stdscr.refresh() curses.wrapper(main)

On Windows, install with: pip install windows-curses.

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30473194