Do not set 'mouse' when GUI is not present.

Making the configuration more SSH-friendly.