[Info-vax] iTerm2 VMS-friendly keyboard map (Re: Terminal emulators, was: Re: OpenVMS graphics - once more)
Craig A. Berry
craigberry at nospam.mac.com
Thu Aug 20 16:53:33 EDT 2015
On 8/20/15 1:02 PM, Galen wrote:
>>
>> If you want I could send you the output of:
>>
>> $ plutil -convert xml1 -o myiterm.plist
>> ~/Library/Preferences/com.googlecode.iterm2.plist
>>
>> I haven't figured out how to export only the one profile designed to be
>> VMS-friendly rather than the entire settings file.
>
> I'd very much like to have this, too. Is there anywhere it could be posted for general access?
>
The problem with that is that as far as I can find there is no way to
export just one profile or just the keyboard map. I'm not going to post
my entire settings file as that has all sorts of stuff about my local
network in it.
I could in principle manually extract just the keyboard components of
the settings. Those look like this snippet:
<key>Keyboard Map</key>
<dict>
<key>0x2a-0x200000</key>
<dict>
<key>Action</key>
<integer>10</integer>
<key>Text</key>
<string>OS</string>
</dict>
However, that's not very human readable, nor is there any convenient way
to get the machine to read it outside of importing the entire settings
file. So I've typed in below what I see under the Keys tab under
Preferences->Profiles. To add them to your profile, click the plus sign
to add a new shortcut, press the key you want to map, choose "Send
Escape Sequence" and then type in anything after the first left bracket
in the list below.
Note: these are probably incomplete (for some reason I stopped at F10
even though the Apple keyboard goes up to F19). Also note: these are
designed to mimic the layout of an LK keyboard so labels on an Apple
keyboard become irrelevant (e.g., "page up" now means Remove and "end"
means Prev). Also, also note: don't use this profile for the EFI console
on an Integrity server; the arrow keys won't work.
num-* Send ^[OS
num-+ Send ^[OI
num-/ Send ^[OR
num-= Send ^[OQ
F1 Send ^[OP
F2 Send ^[OQ
F3 Send ^[OR
F4 Send ^[OS
F5 Send ^[Ot
F6 Send ^[Ou
F7 Send ^[Ov
F8 Send ^[OI
F9 Send ^[Ow
F10 Send ^[Ox
Del-> Send ^[[4-
Home Send ^[[2-
End Send ^[[5-
Page Up Send ^[[3-
Page Down Send ^[[6-
Numlock Send ^[OP
Help Send ^[[1-
More information about the Info-vax
mailing list