* how to set C-tab for 'other-window in terminal
@ 2009-03-21 13:02 Santanu
2009-03-21 14:43 ` ventolerac
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Santanu @ 2009-03-21 13:02 UTC (permalink / raw)
To: help-gnu-emacs
Hi,
I have the following line in my ~/.emacs:
---------------
(global-set-key [(control tab)] 'other-window)
---------------
Now, when I press C-Tab in emacs (open in its own window in X), it
works as expected.
But if I open emacs in a terminal (say, gnome-terminal) with "emacs -
nw", the above key combination does not work. What am I missing? I am
using "GNU Emacs-23.0.60.1" in Ubuntu 8.10.
Regards,
Santanu Chatterjee
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to set C-tab for 'other-window in terminal
2009-03-21 13:02 how to set C-tab for 'other-window in terminal Santanu
@ 2009-03-21 14:43 ` ventolerac
2009-03-21 15:20 ` Peter Dyballa
[not found] ` <mailman.3723.1237648851.31690.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 5+ messages in thread
From: ventolerac @ 2009-03-21 14:43 UTC (permalink / raw)
To: help-gnu-emacs
In text terminals, Control-Tab does not send anything to the
terminal. You still will press `C-x o' for `other-window'.
On Mar 21, 1:02 pm, Santanu <thisissant...@gmail.com> wrote:
> Hi,
>
> I have the following line in my ~/.emacs:
> ---------------
> (global-set-key [(control tab)] 'other-window)
> ---------------
> Now, when I press C-Tab in emacs (open in its own window in X), it
> works as expected.
>
> But if I open emacs in a terminal (say, gnome-terminal) with "emacs -
> nw", the above key combination does not work. What am I missing? I am
> using "GNU Emacs-23.0.60.1" in Ubuntu 8.10.
>
> Regards,
> Santanu Chatterjee
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to set C-tab for 'other-window in terminal
2009-03-21 13:02 how to set C-tab for 'other-window in terminal Santanu
2009-03-21 14:43 ` ventolerac
@ 2009-03-21 15:20 ` Peter Dyballa
[not found] ` <mailman.3723.1237648851.31690.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2009-03-21 15:20 UTC (permalink / raw)
To: Santanu; +Cc: help-gnu-emacs
Am 21.03.2009 um 14:02 schrieb Santanu:
> What am I missing?
Understanding.
A terminal or a terminal emulation in software has 32 control
characters. To learn them, invoke
M-x unix-manual RET ascii RET
They are those before SPC.
--
Greetings
Pete
Isn't vi that text editor with two modes... one that beeps and one
that corrupts your file?
– Dan Jacobson, on comp.os.linux.advocacy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to set C-tab for 'other-window in terminal
[not found] ` <mailman.3723.1237648851.31690.help-gnu-emacs@gnu.org>
@ 2009-03-21 15:30 ` Pascal J. Bourguignon
2009-03-21 22:46 ` Santanu
0 siblings, 1 reply; 5+ messages in thread
From: Pascal J. Bourguignon @ 2009-03-21 15:30 UTC (permalink / raw)
To: help-gnu-emacs
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 21.03.2009 um 14:02 schrieb Santanu:
>
>> What am I missing?
>
>
> Understanding.
>
> A terminal or a terminal emulation in software has 32 control
> characters. To learn them, invoke
>
> M-x unix-manual RET ascii RET
>
> They are those before SPC.
However, there is a solution with some terminal emulators (or if you
have access to it, you could modify the firmware of your terminal).
Eg. with xterm, you could add translations to map X key chords to
ASCII control sequences, and then have emacs interpret these control
sequences.
Have a look at http://stuff.mit.edu/afs/sipb/user/daveg/Info/backtab-howto.txt
--
__Pascal Bourguignon__
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to set C-tab for 'other-window in terminal
2009-03-21 15:30 ` Pascal J. Bourguignon
@ 2009-03-21 22:46 ` Santanu
0 siblings, 0 replies; 5+ messages in thread
From: Santanu @ 2009-03-21 22:46 UTC (permalink / raw)
To: help-gnu-emacs
Hi All,
Thanks for your replies. I now understand the reason.
While I understand that C-TAB won't be available in
emacs in console mode, I have found a roundabout way
to enable console mode emacs to receive C-TAB key.
I now have the following in my .emacs:
---------------------------
(define-key function-key-map [(f12)] 'event-apply-control-modifier)
(global-set-key (kbd "C-TAB") 'other-window)
---------------------------
Of course, this is not a solution to the problem, just for
my satisfaction :-)
BTW, is there any way to represent C-TAB using [()]
representation instead of using kbd? I tried but nothing
seems to work.
@Pascal Bourguignon: Thanks for the link. It was very
informative.
Regards,
Santanu Chatterjee
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-03-21 22:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-21 13:02 how to set C-tab for 'other-window in terminal Santanu
2009-03-21 14:43 ` ventolerac
2009-03-21 15:20 ` Peter Dyballa
[not found] ` <mailman.3723.1237648851.31690.help-gnu-emacs@gnu.org>
2009-03-21 15:30 ` Pascal J. Bourguignon
2009-03-21 22:46 ` Santanu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).