| The Backspace Key is Not Doing What I Want |
Back |
The Problem
So let's say you just typed the name AMATERSE, in yellow below using ISPF edit (or whatever) with the cursor just after the E as shown below:
Now I press the Backspace key a few times and the screen looks like this:
Ok, the cursor moved to the left 3 characters, but did not blank out the 3 characters.
Turns out, I made this the default Backspace action based on (if I remember correctly) the way my real 3278-4 IBM terminal worked. But you can change the action in some pretty interesting ways:
First, don't bother looking at the Keyboard Editor. It will just show the Backspace function assigned to the Backspace key, like this. Just leave that as it is:

Setting Backspace To Blank Out a Character
Instead, click the Options/Options menu and the Cursor tab. What? Yes, I put the various Backspace function options on the Cursor tab, because I wanted to have different action based on whether the cursor was in Insert Mode or not.
You may see the default settings for Normal Cursor (non insert) and Insert Cursor (insert mode) are both set to "move left" which basically does the same as the left arrow. No character blanking, no character deletion:

If you want to change the Backspace function so it blanks out the character as you backspace, change both settings to "destruct" as shown below, press Ok, and you're done:
Now let's try the same test, clicking backspace 3 times:

So maybe that's what you want and you don't need to read the rest of this web page.
Setting Backspace to Blank or Delete Based on Insert Mode
With the settings above, we have an interesting problem. Instead of backspacing through something we just typed (AMATERSE in the example above), let's backspace through the word PGM in the same line:
So we start with this, cursor just past the M, as if we just typed PGM:

And after backspacing 3 times we see this, which may or may not be what we want:
Now I want to replace that with the word PROC so I just type PROC and I get:
Ok, that's not too bad. I just need to switch to Insert Mode and add the = sign back.
So what if I change the Insert Mode Backspace action to delete, like this:
Now if I know I'm going to replace a particular word, I can move the cursor past the end of that word like I did above, but this time I'll press the Insert Key. The cursor changes to a vertical line as indicated on the Cursor options window:

Now when we Backspace, the delete action is done, which deletes the characters and scoots the rest of the line over to the left as needed, looking like this after the 3 backspaces:
Now since we're still in Insert Mode, we can type PROC as needed, and the result is what we want, with less hassle:
So you might try those options if you are interested.
|