unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* additional key bindings for xterm
@ 2006-08-04 13:58 Dan Nicolaescu
  2006-08-04 18:42 ` Richard Stallman
  2006-08-06 17:43 ` Alan Mackenzie
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Nicolaescu @ 2006-08-04 13:58 UTC (permalink / raw




xterm-216 when run like this:

xterm -xrm '*modifyOtherKeys:1'

emits distinct strings for key combinations that did not do anything
in the past, for example C-. C-, C-TAB C-return 
This allows emacs to use these keys when running in such an xterm. 
For example the C-. binding in flyspell-mode was only usable in X, but
not in a terminal in the past. 

What other keys would be useful for emacs to support? Please give
specific examples so they can be added to term/xterm.el

Thanks

        --dan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: additional key bindings for xterm
  2006-08-04 13:58 additional key bindings for xterm Dan Nicolaescu
@ 2006-08-04 18:42 ` Richard Stallman
  2006-08-05  2:58   ` T. V. Raman
  2006-08-06 17:43 ` Alan Mackenzie
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2006-08-04 18:42 UTC (permalink / raw
  Cc: emacs-devel

    What other keys would be useful for emacs to support? Please give
    specific examples so they can be added to term/xterm.el

Certainly the control versions of all the printing characters
are useful.  The control-meta versions of them may be useful too.
Beyond that, probably nothing is actually used much.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: additional key bindings for xterm
  2006-08-04 18:42 ` Richard Stallman
@ 2006-08-05  2:58   ` T. V. Raman
  2006-08-05  3:24     ` James Cloos
  0 siblings, 1 reply; 6+ messages in thread
From: T. V. Raman @ 2006-08-05  2:58 UTC (permalink / raw
  Cc: dann, emacs-devel


On the Linux console, I've been using the following (as
additional modifiers with appropriate additions to the console
keymap:



>>>>> "Richard" == Richard Stallman <rms@gnu.org> writes:
    Richard>     What other keys would be useful for emacs to
    Richard> support? Please give specific examples so they can
    Richard> be added to term/xterm.el
    Richard> 
    Richard> Certainly the control versions of all the printing
    Richard> characters are useful.  The control-meta versions of
    Richard> them may be useful too.  Beyond that, probably
    Richard> nothing is actually used much.
    Richard> 
    Richard> 
    Richard> _______________________________________________
    Richard> Emacs-devel mailing list Emacs-devel@gnu.org
    Richard> http://lists.gnu.org/mailman/listinfo/emacs-devel


C-'          Hyper
c'           Super
C-,          Alt

In addition I also change the windows keys to hyper and super.

The trick on the console is to make these keys generate the
strings C-x@[h|s|a] -- little known Emacs feature I discovered in
some corner of the info docs once --- and never found again.

-- 
Best Regards,
--raman

      
Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: additional key bindings for xterm
  2006-08-05  2:58   ` T. V. Raman
@ 2006-08-05  3:24     ` James Cloos
  0 siblings, 0 replies; 6+ messages in thread
From: James Cloos @ 2006-08-05  3:24 UTC (permalink / raw
  Cc: dann, rms, emacs-devel

>>>>> "tvr" == T V Raman <raman@users.sf.net> writes:

tvr> The trick on the console is to make these keys generate the
tvr> strings C-x@[h|s|a] -- little known Emacs feature I discovered
tvr> in some corner of the info docs once --- and never found again.

Start info, go to Emacs, then to User Input.

It is mentioned near the end of that node:

,----(excerpt of: info: Emacs: User Input)
|  If your keyboard lacks one of these modifier keys, you can enter it
| using `C-x @': `C-x @ h' adds the "hyper" flag to the next character,
| `C-x @ s' adds the "super" flag, and `C-x @ a' adds the "alt" flag.
| For instance, `C-x @ h C-a' is a way to enter `Hyper-Control-a'.
| (Unfortunately there is no way to add two modifiers by using `C-x @'
| twice for the same character, because the first one goes to work on
| the `C-x'.)
`----

-JimC
-- 
James Cloos <cloos@jhcloos.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: additional key bindings for xterm
  2006-08-06 17:43 ` Alan Mackenzie
@ 2006-08-06 17:39   ` Andreas Schwab
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Schwab @ 2006-08-06 17:39 UTC (permalink / raw
  Cc: Dan Nicolaescu, emacs-devel

Alan Mackenzie <acm@muc.de> writes:

> I certainly think the arrow keys should have distinct codes for all 8
> modifier combinations.

The arrow keys are already available in xterm in all variants even without
modifyOtherKeys.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: additional key bindings for xterm
  2006-08-04 13:58 additional key bindings for xterm Dan Nicolaescu
  2006-08-04 18:42 ` Richard Stallman
@ 2006-08-06 17:43 ` Alan Mackenzie
  2006-08-06 17:39   ` Andreas Schwab
  1 sibling, 1 reply; 6+ messages in thread
From: Alan Mackenzie @ 2006-08-06 17:43 UTC (permalink / raw
  Cc: emacs-devel

Hi, Dan!

On Fri, Aug 04, 2006 at 06:58:04AM -0700, Dan Nicolaescu wrote:


> xterm-216 when run like this:

> xterm -xrm '*modifyOtherKeys:1'

> emits distinct strings for key combinations that did not do anything
> in the past, for example C-. C-, C-TAB C-return 
> This allows emacs to use these keys when running in such an xterm. 
> For example the C-. binding in flyspell-mode was only usable in X, but
> not in a terminal in the past. 

> What other keys would be useful for emacs to support? Please give
> specific examples so they can be added to term/xterm.el

What other keys _wouldn't_ be useful?

On a Linux tty, I have unique keycodes for <left>, <right>, <up>,
<down>, <insert>, <delete>, <home>, <end>, <PgUp>, <PgDown> with all
combinations of C-, M-, <shift>.  I currently have most of them bound.

I certainly think the arrow keys should have distinct codes for all 8
modifier combinations.

> Thanks

>         --dan

-- 
Alan Mackenzie (Munich, Germany).

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-06 17:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-04 13:58 additional key bindings for xterm Dan Nicolaescu
2006-08-04 18:42 ` Richard Stallman
2006-08-05  2:58   ` T. V. Raman
2006-08-05  3:24     ` James Cloos
2006-08-06 17:43 ` Alan Mackenzie
2006-08-06 17:39   ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).