Use newwin not subwin as catacurse doesn't have subwin.
Implement getcurx and getcury for tiles.