Generated from wtd.h with ROBODoc v3.2.3 on Tue Aug 21 10:13:18 2001
TABLE OF CONTENTS
- lib5250/Tn5250WTDContext
NAME
Tn5250WTDContext
SYNOPSIS
Tn5250Buffer buf;
Tn5250WTDContext *ctx;
tn5250_buffer_init(&buf);
ctx = tn5250_wtd_context_new (&buf, NULL, dst_dbuffer);
tn5250_wtd_context_convert (ctx);
tn5250_wtd_context_destroy (ctx);
tn5250_buffer_log(&buf);
DESCRIPTION
The WTD context object is used to calculate (and optimize) commands and
WTD-type orders to transition from the source display buffer and format
table to the destination display buffer and format table.
This will be used in our 5250 server implementation later. Currently,
we only accept NULL for the source display buffer and format table and
create a full set of commands and orders which we send back to the host
(and the host sends back to us) for the save/restore screen
functionality. Differential Write to Display orders and data should
be implemented when the 5250 server is born.
SOURCE
struct _Tn5250WTDContext {
struct _Tn5250Buffer * buffer;
struct _Tn5250DBuffer * src;
struct _Tn5250DBuffer * dst;
/* Our current position within the display. */
int y, x;
/* This is a sort of buffer for run-length-encoding the output data
* characters using Repeat to Address orders. */
int ra_count;
unsigned char ra_char;
/* A flag indicating that we have used a Clear Unit or a Clear Unit
* Alternate command. It's helpful in making assumptions about the state
* of the display. */
int clear_unit : 1;
};
typedef struct _Tn5250WTDContext Tn5250WTDContext;