Merge pull request #1667 from eht16/issue1018_win_execute_builtin_path
[geany-mirror.git] / src / vte.h
blobb1af87981182405e22e962c8f025fab84e01adac
1 /*
2 * vte.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2012 Nick Treleaven <<nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef GEANY_VTE_H
24 #define GEANY_VTE_H 1
26 #ifdef HAVE_VTE
28 #include "gtkcompat.h"
30 G_BEGIN_DECLS
32 typedef struct
34 gboolean load_vte; /* this is the preference, NOT the current instance VTE state */
35 gboolean load_vte_cmdline; /* this is the command line option */
36 gboolean have_vte; /* use this field to check if the current instance has VTE */
37 gchar *lib_vte;
38 gchar *dir;
39 } VteInfo;
41 extern VteInfo vte_info;
44 typedef struct
46 GtkWidget *vte;
47 GtkWidget *menu;
48 GtkWidget *im_submenu;
49 gboolean scroll_on_key;
50 gboolean scroll_on_out;
51 gboolean ignore_menu_bar_accel;
52 gboolean follow_path;
53 gboolean run_in_vte;
54 gboolean skip_run_script;
55 gboolean enable_bash_keys;
56 gboolean cursor_blinks;
57 gboolean send_selection_unsafe;
58 gint scrollback_lines;
59 gchar *shell;
60 gchar *font;
61 gchar *send_cmd_prefix;
62 GdkColor colour_fore;
63 GdkColor colour_back;
64 } VteConfig;
65 extern VteConfig *vc;
68 void vte_init(void);
70 void vte_close(void);
72 void vte_apply_user_settings(void);
74 gboolean vte_send_cmd(const gchar *cmd);
76 const gchar *vte_get_working_directory(void);
78 void vte_cwd(const gchar *filename, gboolean force);
80 void vte_append_preferences_tab(void);
82 void vte_send_selection_to_vte(void);
84 void vte_select_all(void);
86 G_END_DECLS
88 #endif /* HAVE_VTE */
90 #endif /* GEANY_VTE_H */