Debian Codegraph @

terps/tads/tads2/osifc.c

raw symbols SCIP
1 #ifdef RCSID
2 static char RCSid[] =
3 "$Header$";
4 #endif
5
6 /*
7 * Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved.
8 *
9 * Please see the accompanying license file, LICENSE.TXT, for information
10 * on using and copying this software.
11 */
12 /*
13 Name
14 osifc.c - operating system interface - portable definitions
15 Function
16 This module contains portable code for the TADS OS interface. This
17 code is portable - it doesn't need to be modified for any platform,
18 and it should be linked into the executables on all platforms.
19 Notes
20
21 Modified
22 09/27/99 MJRoberts - Creation
23 */
24
25 #include "std.h"
26 #include "os.h"
27
28 /* ------------------------------------------------------------------------ */
29 /*
30 * Global variables
31 */
32
33 /*
34 * Page length and line width of the display area. We default to a 24x80
35 * display area; the OS code should change these values during startup to
36 * reflect the actual display area size, if it can be determined.
37 *
38 * The portable code can use these values to determine the screen size for
39 * layout purposes (such as word-wrapping and "more" prompt insertions).
40 */
41 int G_os_pagelength = 24;
42 int G_os_linewidth = 80;
43
44
45 /*
46 * MORE mode flag
47 */
48 int G_os_moremode = TRUE;
49
50 /*
51 * Name of the loaded game file, if applicable. The application should set
52 * this during start-up (or wherever else is appropriate). For the
53 * interpreter, this is the .gam or .t3 file being executed. For
54 * executables other than interpreters, this should simply be left empty.
55 */
56 char G_os_gamename[OSFNMAX];
57