On Mon, 22 Jan 2001, Sean Porterfield wrote:
> When FER is set, only certain keys are valid. The ones I know of are
> arrow keys, TAB, BACKTAB, BACKSPACE, ENTER, FIELD EXIT, FIELD +. (This
> was tested on a 3487.) The odd thing about the "real" terminal is left
> arrow which doesn't move the cursor, all other arrow keys do. I guess
> it moves left back into the field.
On most terminals, once you get to the end and you've typed the last
digit, the cursor flashes a little differently, and you're in a mode where
you need to press a field-exit (or similar key) before you can continue.
Hitting LEFT/Backspace should put you back to the spot where you can
change the last digit of the field. The cursor doesn't actually move, it
just blinks differently. :)
>
> In tn5250, RESET, left arrow, TAB, BACKTAB, BACKSPACE and FIELD EXIT
> clear the FER. There is something wrong with FIELD + (don't know if
> it's the last patches from CVS that I got today or if it was like
> that). From display.c I think it was intended that FIELD+ and FIELD-
> reset the FER.
Can you elaborate on what's wrong with FIELD+? If it happened in the last
few weeks, its probably my fault. :( What does it do wrong?
>
> I added K_ENTER to my display.c and it seems to work well. I don't know
> how to fix up arrow, right arrow, down arrow, FIELD+, FIELD- (if FIELD-
> should really work - it doesn't on my "real" terminal).
>
Just above where you added the K_ENTER there is some code that says
something like:
case K_LEFT:
case K_BACKSPACE:
tn5250_display_indicator_clear (This, TN5250_DISPLAY_IND_FER);
return;
Try adding some code below that which looks like this:
case K_UP:
case K_DOWN:
case K_RIGHT:
tn5250_display_indicator_clear (This, TN5250_DISPLAY_IND_FER);
break;
(note the "break" instead of "return" will cause it to move up/down/right
as well as clearing FER)
Is that what you're looking for? (I'd get up and try it on a terminal,
but I've just spent too much time with tn5250 today, already)
+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to [EMAIL PROTECTED]
| To subscribe to this list send email to [EMAIL PROTECTED]
| To unsubscribe from this list send email to [EMAIL PROTECTED]
| Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
+---