How do I switch in/out of fullscreen mode from the command line in RealVNC?

How do I switch in/out of fullscreen mode from the command line in RealVNC?

This would be very handy, allowing me to keep my hands on the keyboard when I need to check my email (in Windows).


Hit F8 to pull up the menu and then select (using keyboard) the full screen toggle.


I'm going to go off-path a little and answer this also for the RealVNC fork TigerVNC, since they both have the same F8 context-menu.

TigerVNC from v1.4.90 onwards lets you type F8 F to toggle the full-screen state. You will see other accelerator keys on that context menu too - F8 Z to minimize the window is also helpful. Nice and fast once you get used to it.