|
Hi Sean, On Fri, 7 Feb 2003, Sean Porterfield wrote: > > When using SEU, I use the newline key quite often. In Client Access, > the key positions the cursor to the sequence number field. In tn5250, > the cursor moves to position 1 of the next record (the field after > the sequence number.) I think I see the problem. If I'm right it does this only if there's an input field in the first column of the screen (which is why you see it in SEU) Can you try this patch and tell me if it solves the problem for you? Index: display.c =================================================================== RCS file: /cvsroot/tn5250/tn5250/src/display.c,v retrieving revision 1.49 diff -u -r1.49 display.c --- display.c 4 Nov 2002 08:55:56 -0000 1.49 +++ display.c 7 Feb 2003 22:07:00 -0000 @@ -1870,11 +1870,14 @@ void tn5250_display_kf_newline (Tn5250Display *This) { int y, x; + Tn5250Field *f; y = tn5250_display_cursor_y(This); tn5250_display_set_cursor (This, y, 0); tn5250_dbuffer_down (This->display_buffers); - tn5250_display_set_cursor_next_field (This); + f = tn5250_display_current_field(This); + if (f == NULL || tn5250_field_is_bypass(f)) + tn5250_display_set_cursor_next_field (This); }
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.