|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 2150 (0x866)
Types: TextFile
Names: »main.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/others/quipu/uips/widget2/main.c«
/* main.c - widget */
/* This file has been modified by Damanjit Mahl @ Brunel University
* on 31st October 1989.
*/
#ifndef lint
static char *rcsid = "$Header: /f/osi/others/quipu/uips/widget2/RCS/main.c,v 7.1 89/12/06 08:22:08 mrose Exp $";
#endif
/*
* $Header: /f/osi/others/quipu/uips/widget2/RCS/main.c,v 7.1 89/12/06 08:22:08 mrose Exp $
*
*
* $Log: main.c,v $
* Revision 7.1 89/12/06 08:22:08 mrose
* sync
*
* Revision 6.0 89/03/18 23:34:47 mrose
* Release 5.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 <sys/types.h>
#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);
user_tailor();
main_bind();
cnnct_bind();
interact();
quit(-1);
}
setsignals()
{
int i;
for (i=0; i<18; i++)
(void) signal(i, SIG_DFL);
}
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();
free_all();
(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);
}