From 58689b732d0e493f6ef31c0b62aef9a1b60454dd Mon Sep 17 00:00:00 2001 From: Vic Fryzel Date: Sun, 18 Jul 2010 13:03:36 +0800 Subject: Adding rc file support. Dropping most command-line options. committer: Calvin M --- defaults.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 defaults.h (limited to 'defaults.h') diff --git a/defaults.h b/defaults.h new file mode 100644 index 0000000..d822808 --- /dev/null +++ b/defaults.h @@ -0,0 +1,43 @@ +/* mt: A simple, tabbed, VTE based terminal + * Copyright 2010 mutantturkey and mt contributors. + * + * This file is part of mt. + * + * mt is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#ifndef DEFAULT_CONFIG_FILE +#define DEFAULT_CONFIG_FILE g_build_path("/", g_get_home_dir(), ".mtrc") +#endif +#ifndef DEFAULT_FONT +#define DEFAULT_FONT "monospace 10" +#endif +#ifndef DEFAULT_URL_REGEX +#define DEFAULT_URL_REGEX "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*" +#endif + +// The following are not yet used. +#ifndef DEFAULT_FULLSCREEN +#define DEFAULT_FULLSCREEN TRUE +#endif +#ifndef DEFAULT_BOLD +#define DEFAULT_BOLD TRUE +#endif +#ifndef DEFAULT_NUM_SCROLLBACK_LINES +#define DEFAULT_NUM_SCROLLBACK_LINES -1 +#endif +#ifndef DEFAULT_TRANSPARENT_BG +#define DEFAULT_TRANSPARENT_BG FALSE +#endif -- cgit v1.2.3