vte.h 2.1 KB
Newer Older
1 2 3
/*
 *      vte.h - this file is part of Geany, a fast and lightweight IDE
 *
4 5
 *      Copyright 2005-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
 *      Copyright 2006-2011 Nick Treleaven <<nick(dot)treleaven(at)btinternet(dot)com>
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
 *
 *      This program 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 2 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, write to the Free Software
 *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Id$
 */


#ifndef GEANY_VTE_H
#define GEANY_VTE_H 1

28 29
#ifdef HAVE_VTE

30

31
typedef struct
32
{
33 34
	gboolean load_vte;	/* this is the preference, NOT the current instance VTE state */
	gboolean have_vte;	/* use this field to check if the current instance has VTE */
35 36 37 38 39
	gchar	*lib_vte;
	gchar	*dir;
} VteInfo;

extern VteInfo vte_info;
40 41 42 43 44 45 46 47 48 49 50


typedef struct
{
	GtkWidget *vte;
	GtkWidget *menu;
	GtkWidget *im_submenu;
	gboolean scroll_on_key;
	gboolean scroll_on_out;
	gboolean ignore_menu_bar_accel;
	gboolean follow_path;
51
	gboolean run_in_vte;
52
	gboolean skip_run_script;
53
	gboolean enable_bash_keys;
Enrico Tröger's avatar
Enrico Tröger committed
54
	gboolean cursor_blinks;
55
	gboolean send_selection_unsafe;
56 57 58 59 60 61 62
	gint scrollback_lines;
	gchar *emulation;
	gchar *shell;
	gchar *font;
	GdkColor *colour_fore;
	GdkColor *colour_back;
} VteConfig;
63
extern VteConfig *vc;
64 65


66 67 68 69
void vte_init(void);

void vte_close(void);

70 71
void vte_apply_user_settings(void);

72
gboolean vte_send_cmd(const gchar *cmd);
73

74
const gchar *vte_get_working_directory(void);
75

76
void vte_cwd(const gchar *filename, gboolean force);
77

78
void vte_append_preferences_tab(void);
79

80
void vte_send_selection_to_vte(void);
81

82 83
void vte_select_all(void);

84
#endif
85 86

#endif