[msgwin] Reset compiler/messages treeview width at start of build/search (#3816)
[geany-mirror.git] / src / vte.h
blobe6ed735cc99f049b16c2f0281159f52ada965bf8
1 /*
2 * vte.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005 The Geany contributors
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_VTE_H
23 #define GEANY_VTE_H 1
25 #ifdef HAVE_VTE
27 #include "gtkcompat.h"
29 G_BEGIN_DECLS
31 typedef struct
33 gboolean load_vte; /* this is the preference, NOT the current instance VTE state */
34 gboolean load_vte_cmdline; /* this is the command line option */
35 gboolean have_vte; /* use this field to check if the current instance has VTE */
36 gchar *lib_vte;
37 gchar *dir;
38 } VteInfo;
40 extern VteInfo vte_info;
43 typedef struct
45 GtkWidget *vte;
46 GtkWidget *menu;
47 gboolean scroll_on_key;
48 gboolean scroll_on_out;
49 gboolean ignore_menu_bar_accel;
50 gboolean follow_path;
51 gboolean run_in_vte;
52 gboolean skip_run_script;
53 gboolean enable_bash_keys;
54 gboolean cursor_blinks;
55 gboolean send_selection_unsafe;
56 gint scrollback_lines;
57 gchar *shell;
58 gchar *font;
59 gchar *send_cmd_prefix;
60 GdkColor colour_fore;
61 GdkColor colour_back;
62 } VteConfig;
64 extern VteConfig vte_config;
66 void vte_init(void);
68 void vte_close(void);
70 void vte_apply_user_settings(void);
72 gboolean vte_send_cmd(const gchar *cmd);
74 const gchar *vte_get_working_directory(void);
76 void vte_cwd(const gchar *filename, gboolean force);
78 void vte_append_preferences_tab(void);
80 void vte_send_selection_to_vte(void);
82 void vte_select_all(void);
84 G_END_DECLS
86 #endif /* HAVE_VTE */
88 #endif /* GEANY_VTE_H */