I connect to my server from Terminal in Mac OS X 10.5. When I run Midnight Commander there I cannot use function keys like F10 to close MC even I cannot use mouse to control MC. Any idea why function keys don't work ?
Function keys are used to control both software and hardware functions as well as Dashboard and Expose in Mac OS X. If you have a Macbook Pro, F1 and F2 control screen lighting, F10 mutes the speakers, etc.
Keyboard preference pane in
Is the checkbox "Use all F1, F2, etc. keys as standard function keys" on the "Keyboard tab" checked? If it's not, you need to press
Fn+F10for Mac OS to register a
F10key press. Otherwise, you're just toggling mute speakers (or whatever you have on F10).
Check the second tab, "Keyboard Shortcuts", especially "Dashboard & Dock", and "Exposé & Spaces", if F10 is used for one of these functions. If it is, the key press is intercepted before Terminal receives it.
This answer was written for Mac OS X 10.6, I don't know if those dialogs were changed. If step 2 above does not work, check the Dashboard/Expose/Spaces preference pane in System Preferences, the same settings should be available there.
- Go to 'System Preferences...' select 'Expose & Spaces' Preference Pane.
- Click on the Expos Tab.
- Change the All Windows Setting to for instance F11
- Change Application Windows Setting to for instance F12
- Change Show Desktop Setting to for instance F13
- Close System Preferences App
And your Terminal is able to respond to the Function Keys correctly and you're able to quit Midnight Commander.