Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #90611

Re: Redefining keys for Terminal app

From billy@MIX.COM
Newsgroups comp.sys.mac.system, comp.sys.mac.misc
Subject Re: Redefining keys for Terminal app
Date 2016-03-31 18:12 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <ndjpb9$547$1@reader2.panix.com> (permalink)
References <ndjfk5$g0o$10@pcls7.std.com>

Cross-posted to 2 groups.

Show all headers | View raw


In comp.sys.mac.system Michael Moroney <moroney@world.std.spaamtrap.com> wrote:

> Is there a way to redefine the key row "clear = / *" on the aluminum
> keypad when using the "Terminal" app (on El Capitan, Mac Mini) to send
> escape sequences, or to plug a PC keyboard into it and have the keys
> PF1-PF4 send escape sequences? (when I do that now, those keys seem to
> be dead).

You could create a .term file containing the key bindings, but my
understanding is that while newer versions of OS X and Terminal will
read them, they will no longer write (create) one.  So, that makes
it a bit of work.  Especially because you'd have to hack your way
into discovering the pertinent key codes.  A short exceprt (NB the
<esc>s are actually 0x1B chars in this file, and if the keys shown
match what your machine is doing that would be a miracle) -

<key>F704</key>
<string><esc>OP</string>     ! PF1
<key>F705</key>
<string><esc>OQ</string>     ! PF2
<key>F706</key>
<string><esc>OR</string>     ! PF3
<key>F707</key>
<string><esc>OS</string>     ! PF4

A much easier way is to just use the best key remapping tool on
the planet (it's free, too) -

https://pqrs.org/osx/karabiner/index.html.en

Billy Y..
-- 
        sub     #'9+1   ,r0             ; convert ascii byte
	add     #9.+1   ,r0             ; to an integer
	bcc     20$                     ; not a number

Back to comp.sys.mac.system | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Redefining keys for Terminal app moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-03-31 15:27 +0000
  Re: Redefining keys for Terminal app billy@MIX.COM - 2016-03-31 18:12 +0000
    Re: Redefining keys for Terminal app moroney@world.std.spaamtrap.com (Michael Moroney) - 2016-04-04 16:49 +0000
      Re: Redefining keys for Terminal app billy@MIX.COM - 2016-04-21 16:54 +0000

csiph-web