Add a port to get cursor position
Update test/main.py