/* Copyright (c) 1990,1991,1992,1993 Chris and John Downey */

/***

* program name:
    xvi
* function:
    Portable version of UNIX "vi" editor, with extensions.
* module name:
    tcapmain.c
* module function:
    main() function for termcap-based UNIX implementation.
* history:
    STEVIE - ST Editor for VI Enthusiasts, Version 3.10
    Originally by Tim Thompson (twitch!tjt)
    Extensive modifications by Tony Andrews (onecom!wldrdg!tony)
    Heavily modified by Chris & John Downey
    Last modified by Martin Guy

***/

#include "xvi.h"

extern	int	tcap_scr_main P((int, char **));

int
main(argc, argv)
int	argc;
char	*argv[];
{
    tcap_scr_main(argc, argv);
    exit(0);
}

void
startup_error(str)
char	*str;
{
    static int	called = 0;

    if (!called) {
	sys_endv();
	called = 1;
    }
    (void) fputs(str, stderr);
    (void) putc('\n', stderr);
}
