Backspace only moves the cursor in a 3270 session: BackSpace, Erase and Delete
On a 3270 screen, backspace can mean "move left" or "erase left". Why your Backspace key may only move the cursor, and which keys delete text in a field.
You press Backspace on a mainframe screen and the cursor moves left, but the character stays. Over and over. On a 3270 there are two different operations with similar names, and your Backspace key is running the one that does not delete.
Two operations
The x3270 family of emulators documents them as separate actions:
- BackSpace moves the cursor one column to the left. Nothing is deleted. At the left edge it wraps to the end of the row above.
- Erase deletes the character to the left of the cursor. The rest of the field to the right of the cursor moves one place left, and a null is added at the end of the field.
There is also Delete, which deletes the character under the cursor and pulls the rest of the field left, again leaving a null at the end.
Which of these your PC's Backspace key runs depends on the emulator's keyboard map. In x3270 and wx3270, for example, the default keymap puts Erase on the Backspace key. Other emulators, or a changed keymap, may map it to the cursor-left BackSpace instead, which is the behaviour you are seeing.
What to do
- Look in your emulator's keyboard settings for the Erase function and map it to Backspace.
- Use Delete with the cursor on the character instead.
- To clear the rest of a field at once, use Erase EOF. To clear every input field on the screen, use Erase Input. See Local keys (Reset, Erase EOF, Dup, Insert).
Why the end of the field matters
Erase and Delete put a null at the end of the field, not a space. Nulls are what make room for Insert mode later. That is also why a field full of trailing spaces will not let you insert: see ISPF Edit typing overwrites text: Insert key, NULLS ON and full lines.
In a VT or line-mode session
When the emulator is not in 3270 mode (an NVT session, for example a Telnet login to a Unix host), BackSpace and Erase both erase: in line mode they remove the last character you typed, and in character mode they send the erase character to the host. For VT sessions see Keys and key codes.
Related
- Local keys (Reset, Erase EOF, Dup, Insert)
- Fields and attributes
- ISPF Edit typing overwrites text: Insert key, NULLS ON and full lines
- Keys and key codes