When I run cat on gnome-terminal, both C-d and C-S-d terminate it. This is because gnome-terminal cannot distinguish between these keys and sends and EOF in both the cases. Is there a ways I can configure this and tell gnome-terminal to differentiate these keys.
The reason I am asking for this is because I use tmux in gnome-terminal and I'd like to bind tmux actions to C-S-z, C-S-d etc., but doing so renders the non-shift variants of those keys to the same tmux bindings. In other words, I want C-S-d to do a tmux action that I bind, but C-d to send an EOF. Currently, both these key combinations do the same thing, whatever it may be.
Someone on IRC freenode.net#tmux suggested that gnome-terminal might be sending the same key codes for both these key combinations and so tmux is unable to distinguish between them. I also learnt that xterm and rxvt can be configured to do this, but I'd like to know if gnome-terminal can do it.
Any ideas ont hsi appreciated :)