osx - Send "C-(" to Emacs in VT100/xterm terminal (Mac OS X's Terminal)? -


is possible in way send key "c-(" emacs on vt100/xterm terminal (mac os x terminal)? there escape sequence sent achieve equivalent?

i suspect fundamental problem concept of combining control character "(" (and other such characters produced using shift) not exist.

note: using cocoa emacs not option. , reason needing "c-(" paredit.el uses amongst other key combinations, , preferable not remap (because makes sense have on "c-(").

a vt100 terminal couldn't that, because there no ^( control character corresponding (. however, xterm has so-called "modifyotherkeys" mode, allow send unique keycodes combinations that.

to enable it, set modifyotherkeys resource, e.g. in ~/.xdefaults:

xterm*vt100.modifyotherkeys: 1 

with that, ctrl+( send following keycode:

^[[27;6;40~ 

that's rather long though, format keycodes introduced, can enabled setting formatotherkeys resource:

xterm*vt100.formatotherkeys: 1 

with that, ctrl+( sends:

^[[40;6u 

in both of these keycodes, 40 decimal ascii code (, , 6 represents ctrl.

see man xterm , http://invisible-island.net/xterm/ctlseqs/ctlseqs.html further details. no idea whether terminal.app supports of it.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -