#include <libraries/dosextens.h>
#include <dlg/user.h>
#include <dlg/msg.h>
#include <stdio.h>
#include <proto/dlg.h>

#include <pragmas/dlg.h>

extern struct Library *DLGBase;

LONG DisplayBuffer(BPTR    fh,
                   char   *buffer,
                   int     scwidth,
                   int     sclen,
                   char    more,
                   char    ansi,
                   USHORT *screenpos,
                   int     indent,
                   char   *ibuf,
                   int     header,
                   char   *breakbuf)

{struct USER_DATA User;

 User.Screen_Len   = sclen;
 User.Screen_Width = scwidth;
 User.More_Flag    = more;
 User.Ansi_Flag    = ansi;

 return(DispBuffer(fh,buffer,screenpos,indent,ibuf,header,breakbuf,&User));
}


LONG Display_Msg(long    area,
                 char   *transarray,
                 char   *passwd,
                 char    flags,
                 char   *filename,
                 int     scwidth,
                 int     sclen,
                 char    more,
                 USHORT *screenpos,
                 long    findex,
                 char    ansi,
                 char   *breakbuf)

{struct USER_DATA  User;
 struct MsgDisplay md;

 User.Screen_Len   = sclen;
 User.Screen_Width = scwidth;
 User.More_Flag    = more;
 User.Ansi_Flag    = ansi;

 md.area       = area;
 md.transarray = transarray;
 md.passwd     = passwd;
 md.filename   = filename;
 md.screenpos  = screenpos;
 md.findex     = findex;
 md.breakbuf   = breakbuf;
 md.flags      = flags;

 return(DispMsg(&md, &User));
}
