1
/* @(#)helpmidas.c 19.1 (ES0-DMD) 02/25/03 14:36:06 */
2
/*===========================================================================
3
Copyright (C) 1995 European Southern Observatory (ESO)
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License as
7
published by the Free Software Foundation; either version 2 of
8
the License, or (at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public
16
License along with this program; if not, write to the Free
17
Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
20
Corresponding concerning ESO-MIDAS should be addressed as follows:
21
Internet e-mail: midas@eso.org
22
Postal address: European Southern Observatory
23
Data Management Division
24
Karl-Schwarzschild-Strasse 2
25
D 85748 Garching bei Muenchen
27
===========================================================================*/
29
/* @(#)helpmidas.c 19.1 (ES0-DMD) 02/25/03 14:36:06 */
30
/*===========================================================================
31
Copyright (C) 1995 European Southern Observatory (ESO)
33
This program is free software; you can redistribute it and/or
34
modify it under the terms of the GNU General Public License as
35
published by the Free Software Foundation; either version 2 of
36
the License, or (at your option) any later version.
38
This program is distributed in the hope that it will be useful,
39
but WITHOUT ANY WARRANTY; without even the implied warranty of
40
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41
GNU General Public License for more details.
43
You should have received a copy of the GNU General Public
44
License along with this program; if not, write to the Free
45
Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
48
Corresponding concerning ESO-MIDAS should be addressed as follows:
49
Internet e-mail: midas@eso.org
50
Postal address: European Southern Observatory
51
Data Management Division
52
Karl-Schwarzschild-Strasse 2
53
D 85748 Garching bei Muenchen
55
===========================================================================*/
57
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
61
.AUTHOR Francois Ochsenbein [ESO-IPG]
63
.COMMENTS Test of th (hierarchical help) routines
64
.ENVIRONMENT TermWindows
65
.VERSION 2.1 (Version '2' of TermWindows)
66
.VERSION 2.2 02-Jul-1987: Merging with TermDisplay.
67
.VERSION 2.3 02-Dec-1987: Usage of WhileInput
68
------------------------------------------------------------*/
82
.PURPOSE Just output $ _ ^
85
char *str; /* IN: Math. symbol */
86
int len; /* IN: Length */
88
return(tx_out(str, len));
91
/*===========================================================================*/
94
.PURPOSE Just test the Help until the Interrupt
99
char ch, *logfile, *hfile;
100
static char file[40];
104
logfile = GetParmString("-log=");
105
if (logfile) OpenLog (logfile,"Testing TH (Help) facilities");
107
if_not (InitWindows(GetTerminalName(), (char *)0, -1)) {
108
fi_puts (2, "****Bad Terminal Initialisation (see Log File)");
112
hfile = GetNextParm();
113
if (!hfile) hfile = "midas.ind"; /* Head file with indexes */
114
help = InitHelp(hfile, NULL_WINDOW, NULL_WINDOW, NULL_WINDOW) ;
115
hfile = "echelle/midas.ind"; /* Special Context */
116
AddHelp(help, hfile);
118
SetHelpTitleOption(help, 1); /* Use title from Help File */
120
/* Tell that / are used as topic separators */
121
SetHelpSeparators(" /");
122
/* Define what to do in case of Math. Symbols */