13-21
Dynamic Data Exchange
are received and then all of the buffered data will be dispatched to the Client DDE
application that established the link.
The termination characters are CR LF by default, but this can be overridden by
including the following WIN.INI command in the TeemTalk command group:
SessRecvTerm=character(s)
where character(s) can be CRLF (default), CR, or LF.
The link is terminated upon receipt of an appropriate WM_DDE_UNADVISE
message by TeemTalk.
Escape
The Escape function sends the given string which is interpreted by TeemTalk, and
nothing is dispatched to the host. This provides the ability for an application to
directly dispatch (for example) Tektronix 4207 specific escape sequences to
TeemTalk-07W, and have it act upon them appropriately. Note that this is specified to
accept strings of data, which means that NULL characters cannot be dispatched as
they are interpreted to terminate the string. The entire Execute string must be in the
form:
[Escape(String to send)]
An appropriate way for an application to do this is to make use of the Windows SDK
lstrcpy function. For example, to force TeemTalk to display red characters on a white
background, the following would be specified:
lstrcpy(lpszEscString, "[Escape(\e[31;47m)]");
The lpszEscString would then be attached to the standard DDEEXECUTE data
structure and be transmitted by posting it along with a WM_DDE_EXECUTE
message.
CurPos & CurPosStr
Curpos uses a DDE_DATA command to pass back data for the requested cursor
position. The data is held in the structure DDE_CURS_INF, as documented below,
and sent across to the calling program in CF_TEXT format.
typedef struct DDE_CURS_INF
{
int Column;
int Row;
}DDE_CURSINF, FAR * LPDDE_CURSINF;