Which $TERM to use to have both 256 colors and mouse move events in python curses?
问题 Currently if I set the TERM environment variable to 'xterm-1003' I can get mouse move events but I get crappy colors and curses.can_change_color() == False os.environ['TERM'] = 'xterm-1003' ... curses.mousemask(curses.ALL_MOUSE_EVENTS | curses.REPORT_MOUSE_POSITION) ... while True: event = screen.getch() if event == curses.KEY_MOUSE: # I get nice events whenever I move the mouse (no click required) _, mx, my, _, _ = curses.getmouse() and if I set the TERM env var to 'xterm-256color' I get a