× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi James,

> I need a way to tell lib5250 to position the cursor to a specific column
> and row.  So far my reading hasn't uncovered a way to do this.  I need
> something like tn5250_set_current_position(row,column).
>
> This is needed so I can set the cursor position with the mouse.


Take a look at tn5250_dbuffer_cursor_set()

To call it, you'll need a pointer to the Tn5250Display object.  This
object is passed to your routine in the terminal_update() routine.  I
suggest that you save the pointer in your own _Tn5250TerminalPrivate
structure, and then when you need it you can call the cursor set routine
with:

    tn5250_dbuffer_cursor_set(term->data->display->display_buffers,
                              row, column);

HTH

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.