|
|
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: 2311 (0x907)
Types: TextFile
Names: »main.c«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/others/quipu/uips/widget/main.c«
/* main.c - widget */
#ifndef lint
static char *rcsid = "$Header: /f/osi/others/quipu/uips/widget/RCS/main.c,v 6.0 89/03/18 23:34:47 mrose Rel $";
#endif
/*
* $Header: /f/osi/others/quipu/uips/widget/RCS/main.c,v 6.0 89/03/18 23:34:47 mrose Rel $
*
*
* $Log: main.c,v $
* 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 <stdio.h>
#include <signal.h>
#include <curses.h>
#include <varargs.h>
#include "widget.h"
#include "quipu/util.h"
#ifdef lint
#define ETCDIR "/etc"
#endif
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[];
extern char * isodepath;
main(argc, argv)
int argc;
char *argv[];
{
isodepath = ETCDIR;
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);
}