You, sir, are a star! It now works, mate, thank you!

I put the mouse_mode change in main() and it works fine.

Thanks once again - it's appreciated!

Cheers - Jim.