echo ; /*  Note that this declares an int available externally
 lc -cwusf -v -sc=__MERGED -M -y EQ.c
 blink EQ.o LIB lib:amiga.lib DEFINE _stdout=_echo SD SC ND VERBOSE
 quit
*/

#include "exec/types.h"
#include "exec/exec.h"
#include "exec/execbase.h"
#include "libraries/dos.h"
#include "proto/exec.h"
#include "proto/dos.h"

struct DosLibrary   *DOSBase;

int    printf(char *,);

#define ABSEXECBASE ((struct ExecBase **)4L)

void EQ()    /* CLI EarthQuake     M.E.S.   88-07-02   */
{
    int i;
    if (!(DOSBase = (struct DosLibrary *)OpenLibrary("dos.library",0)))
        return;
    echo = (int)Output();
    for (i=0;i < 10; i++)
        {
         printf("\033[E\033[T");
        }
    printf("cli Earthquake by \033[2;3mMark Schretlen\033[0m\n");
    return;
}
