I'm interested in getting a
C-i not a
\t are the same thing (ASCII character 9).
If you want the
TAB key to be different to
C-i you can achieve that in a GUI environment (but not in a terminal, where they are, again, the same thing).
In GUI environments, the event
<tab> is sent to Emacs when the TAB key is used.
9) so that in a GUI environment the TAB key will do the same thing that it does in a terminal.
(lookup-key function-key-map (kbd "<tab>"))
If you want to 'expose' the
<tab> event, you'll want to remove that binding:
(define-key function-key-map (kbd "<tab>") nil)
Note that most things with a tab binding will be using the terminal-friendly value, so expect some things to stop working if you remove this mapping.