Backspace and Delete work the wrong way in a 5250 emulator on a Mac
On a Mac, the Delete key is the PC Backspace key and Fn-Delete is the PC Delete key. How that maps to the 5250 Backspace and Delete Character functions.
On a Mac keyboard the key labelled Delete is not the same key as Delete on a PC. When a 5250 emulator expects a PC layout, Backspace and Delete can seem to work the wrong way round.
The Mac keys and their PC names
The Mac User Guide's page on Windows keys on a Mac keyboard gives the pairs:
| PC key | Mac key | What it does in Mac text | |---|---|---| | Backspace | Delete | Deletes the character to the left of the insertion point | | Delete | Fn-Delete | Deletes the character to the right of the insertion point |
Some Mac keyboards also have a separate Forward Delete key (⌦), which is the PC Delete key.
How a 5250 emulator uses them
A 5250 emulator maps PC keys to 5250 functions, and each emulator has its own map. IBM Host On-Demand's default keyboard map is one published example: the Backspace key does the Backspace function, and the Delete key does Delete Character.
With a map like that, on a Mac:
- Delete (the PC Backspace key) does the 5250 Backspace function.
- Fn-Delete, or Forward Delete, does Delete Character.
If you press the big Delete key to remove the character under the cursor, press Fn-Delete instead.
If the keys really are swapped
If Delete removes the character to the right, or Fn-Delete does nothing, the emulator's key map is different from the PC default. Look at its keyboard settings and see which keys the Backspace and Delete Character functions are on. In IBM i Access Client Solutions this is Edit > Preferences > Keyboard, category Host Functions, where Search for Key shows what a key does and Assign a Key changes it.
SSH to IBM i is different
In an SSH or Telnet (VT) session to the IBM i shell, the keys send characters, not 5250 functions. What Backspace sends there is a terminal setting; see Keys and key codes.
Related
- 5250 function keys
- Backspace only moves the cursor in a 3270 session: BackSpace, Erase and Delete
- Keys and key codes
- App guide: Keyboard shortcuts
Sources
- Mac User Guide: Windows keys on a Mac keyboard (Backspace and Delete)
- Mac User Guide: What are those symbols shown in menus? (Delete and Forward Delete)
- IBM Host On-Demand: default keyboard mapping (Backspace, Delete Character)
- IBM Support: ACS Keyboard Issues (Preferences > Keyboard, Search for Key)
- IBM Support: Steps to map keyboard (Host Functions) using Access Client Solutions