/* global variable definitions */

#ifndef USERDEFS_H
#include "userdefs.h"
#endif

#ifndef LYSTRUCTS_H
#include "LYStructs.h"
#endif

#ifndef LYCopyRight_H
#include "LYCopyRight.h"
#endif

#ifndef GLOBAL_DEFS_H
#define GLOBAL_DEFS_H

#define NUMBERS_AS_ARROWS 0
#define LINKS_ARE_NUMBERED 1

#define NOVICE_MODE 	  0
#define INTERMEDIATE_MODE 1
#define ADVANCED_MODE 	  2

#define DIRNAMESIZE 256
extern int more;  /* is there more document to display? */
extern int HTCacheSize;  /* the number of documents cached in memory */
extern int InteruptTransfer;
extern int display_lines; /* number of lines in the display */
extern int www_search_result;
extern char *checked_box;  /* form boxes */
extern char *unchecked_box;  /* form boxes */
extern char *star_string; /* a string of stars */
extern char *empty_string;
extern char *startfile;
extern char *helpfile;
extern char indexfile[256];
extern char personal_mail_address[120];
extern char *display;
extern BOOLEAN LYforce_HTML_mode;
extern BOOLEAN LYforce_no_cache;
extern BOOLEAN user_mode; /* novice or advanced */
extern BOOLEAN anonymous;
extern BOOLEAN is_www_index;
extern BOOLEAN dump_output_immediately;
extern BOOLEAN lynx_mode;
extern BOOLEAN recent_sizechange;
extern BOOLEAN telnet_ok;		/* TRUE to exec telnet commands */
extern BOOLEAN no_print;    /* TRUE to disable printing */
extern BOOLEAN local_exec;  /* TRUE to enable local program execution */
        /* TRUE to enable local program execution in local files only */
extern BOOLEAN local_exec_on_local_files; 
extern BOOLEAN child_lynx;	  /* TRUE to exit with an arrow */
extern BOOLEAN error_logging;     /* TRUE to mail error messages */
extern BOOLEAN vi_keys;           /* TRUE to turn on vi-like key movement */
extern BOOLEAN emacs_keys;        /* TRUE to turn on emacs-like key movement */
extern BOOLEAN keypad_mode;       /* is set to either NUMBERS_AS_ARROWS or
				   * LINKS_ARE_NUMBERED 
				   */
extern BOOLEAN case_sensitive;    /* TRUE to turn on case sensitive search */
extern char editor[256];          /* if non empty it enables edit mode with
				   * the editor that is named */
extern char bookmark_page[256];

#endif /* GLOBAL_DEFS_H */
