I am using a British IBM model M keyboard with Mountain Lion. I have selected the "British - PC" input source and it is working well, except for one key: the pipe.
If you consider what is printed on the key-caps to be correct then the keyboard is mapped correctly, but there is one difference to what my muscle-memory expects and how the keyboard works in Linux.
The key with the "¦" symbol (a "broken pipe"?) on it lies immediately to the right of the left-shift key. I am used to getting a "|" symbol (the "pipe") if I use this key with the "Shift" key.
The key with the "|" symbol is the one immediately to the left of the number 1 key. It emits a "|" symbol when used with the "Alt" key.
Now, I would like to press the key immediately to the right of the left-shift key (marked "¦") and to get a pipe "|" output when used with the "Shift" key.
I have tried using the OSX "symbol and text substitution" feature and this works, except it does not work in the terminal (which is the only place I really need to use this symbol).
So, how can I change the keyboard mapping so that the "¦" key emits a "|" character ?