#!/usr/bin/env python"""You can use this tool to find out values of keypresses"""fromcursesimport*sep='; '@wrapperdefmain(w):mousemask(ALL_MOUSE_EVENTS)mouseinterval(0)whileTrue:ch=w.getch()ifch==KEY_MOUSE:w.addstr(repr(getmouse())+sep)else:w.addstr(str(ch)+sep)