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


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

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-04-21 16:54 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <nfb0k6$7cc$1@reader2.panix.com> (permalink)
References <ndjfk5$g0o$10@pcls7.std.com> <ndjpb9$547$1@reader2.panix.com> <ndu5ue$sr7$1@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,
quoting me:

> ><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
> 
> Thanks for that info.  Do you know the name and where to put it would be?
> How to obtain the codes (F704-F707 in the example) from the keyboard?

I did it by putting bells (control-G) in the strings, then trying various
key codes - run Terminal via the .term file, then press the keys and see if
you hear beeps.  I believe the terminal emulator can do up to eight distinct
bells.  I know it can do four, for sure, so you can test a few key codes on
each iteration via the number of bells for each.  Yea, this was a tedious
process.  If you're a heavy user of DEC's text editors, it is worth the
effort, tho.  Or, was, prior to Mr. PQRS's work.

You'll also have to put the keypad in the applicaion mode first, by typing
out a file containing <esc>= (just two chars) first, for the above to work.

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