| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
has_mouse() reports whether the mouse driver was successfully initialized. window.mouse_trafo(y, x, to_screen) converts a coordinate pair between window-relative and screen-relative coordinates, returning the (y, x) pair or None if it lies outside the window. Together these complete the curses mouse interface. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Documentation build overview3 files changed ± library/curses.html ± whatsnew/3.16.html ± whatsnew/changelog.html |
Sorry, something went wrong.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
Add the two remaining pieces of the curses mouse interface.
curses.has_mouse() reports whether the mouse driver was successfully initialized.
curses.window.mouse_trafo(y, x, to_screen) converts a coordinate pair between window-relative and screen-relative (stdscr-relative) coordinates, returning the converted (y, x) tuple, or None if the point lies outside the window. Modeled on the existing window.enclose(), with the same NCURSES_MOUSE_VERSION guard.
🤖 Generated with Claude Code