DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T m

⟦136ea5351⟧ TextFile

    Length: 2241 (0x8c1)
    Types: TextFile
    Names: »main.c«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/others/quipu/uips/widget/main.c« 

TextFile

/* main.c - widget */

#ifndef	lint
static char *rcsid = "$Header: /f/osi/others/quipu/uips/widget/RCS/main.c,v 7.0 89/11/23 22:09:42 mrose Rel $";
#endif

/* 
 * $Header: /f/osi/others/quipu/uips/widget/RCS/main.c,v 7.0 89/11/23 22:09:42 mrose Rel $
 *
 *
 * $Log:	main.c,v $
 * Revision 7.0  89/11/23  22:09:42  mrose
 * Release 6.0
 * 
 */

/*
 *				  NOTICE
 *
 *    Acquisition, use, and distribution of this module and related
 *    materials are subject to the restrictions of a license agreement.
 *    Consult the Preface in the User's Manual for the full terms of
 *    this agreement.
 *
 */


#include <stdio.h>
#include <signal.h>
#include <curses.h>
#include <varargs.h>

#include "widget.h"
#include "quipu/util.h"

char    currentpath[1024];

extern  int     wprint(),new_service();
extern  char    goto_path[], namestr[], passwd[];
extern  char   *myname;
extern  WINDOW  *Text;
extern  WIDGET  mainwdgts[];
extern  WIDGET  cnnctwdgts[];

main(argc, argv)
int     argc;
char    *argv[];
{
    quipu_syntaxes ();
    dsap_init (&argc,&argv);

    initwidgets();                      /* Call the screen/curses/widget      */
    setsignals();
    erasehghlght (TRUE);
    sethelpfile();                      /* Try to open HELPFILE           */

    user_tailor();

    setdialogstr(getwidget(mainwdgts,'g'),  goto_path, 256);
    main_bind ();

    interact();
    quit(-1);
}


setsignals()
{
int     i;

	for (i=0; i<18; i++)
	    (void) signal(i, SIG_DFL);
}


showcurrentpath(pathstr)
char    *pathstr;
{
    (void) strcpy(goto_path, pathstr);
    printdialog(getwidget(mainwdgts,'g'));
    rfrshwidgets(mainwdgts);
}

eprint(str)
char    *str;
{
    tprint(str);
}

die(sig, str)
int     sig;
char    *str;
{
    eprint(str);
    quit (sig);
}

/* This tidies up the terminal, writes the current history list and finishes */
quit(sig)
int     sig;
{
    endwidgets();

    (void) ds_unbind();
/*
    resettty(OLD);
*/
    hide_picture();	
    exit(sig);
}

void int_quit(sig)
int     sig;
{
     quit(sig);
}


void    advise (va_alist)
va_dcl
{
    int     code;
    va_list ap;
    extern LLog * log_dsap;

    va_start (ap);

    code = va_arg (ap, int);

    (void) _ll_log (log_dsap, code, ap);

    va_end (ap);
}