Project Homepage | Sourceforge Page | CVS Repository | Freshmeat.net Page | Download project | Author's Homepage |
00001 /*!\file main.h 00002 \brief run-free main include file 00003 00004 run-free is a command line launching program written in gtk. This 00005 version of run-free is written is C for gtk+1.2 00006 */ 00007 /* NOTICE: 00008 Copyright (C) 2004 Karl N. Redman (SleepingStill.com) 00009 00010 This program is free software; you can redistribute it and/or modify 00011 it under the terms of the GNU General Public License as published by 00012 the Free Software Foundation; either version 2 of the License, or 00013 (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 00024 For further information contact: parasyte@sleepingstill.com 00025 */ 00026 00027 #ifndef _MAIN_H_ 00028 #define _MAIN_H_ 00029 00030 /* GLOBALS: 00031 yes, they're GLOBAL -this is C not C++ 00032 */ 00033 00034 /** @name Global Switches 00035 * Switches used throughout the program 00036 */ 00037 //@{ 00038 gboolean run_in_term; /*!< toggle run_in_term checkbox */ 00039 gboolean die; /*!< do not die unles killed */ 00040 gboolean no_kbhit; /*!< do not allow kbhit */ 00041 gboolean keep_open; /*!< keep the terminal open */ 00042 //@} 00043 00044 /** @name Global Parameters 00045 * common GLOBAL parameters 00046 */ 00047 //@{ 00048 char *home_directory; /*!< the home directory */ 00049 char *history_file; /*!< the history file */ 00050 int history_len; /*!< the history length */ 00051 char *terminal_path; /*!< this is the path to a terminal program*/ 00052 00053 /*! the command line entered in the entry box */ 00054 char *command; 00055 00056 /*! execute bash in interactive mode */ 00057 gboolean bash_shell_mode; 00058 //@} 00059 00060 ///Run a command 00061 void run_command(char *command); 00062 00063 #endif // _MAIN_H_