Bump API version for the Scintilla 5.1.5 change
[geany-mirror.git] / src / vte.h
blobf25b1de465818d1c7b0892e276dd9ddba4567d4b
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 GtkWidget *im_submenu;
48 gboolean scroll_on_key;
49 gboolean scroll_on_out;
50 gboolean ignore_menu_bar_accel;
51 gboolean follow_path;
52 gboolean run_in_vte;
53 gboolean skip_run_script;
54 gboolean enable_bash_keys;
55 gboolean cursor_blinks;
56 gboolean send_selection_unsafe;
57 gint scrollback_lines;
58 gchar *shell;
59 gchar *font;
60 gchar *send_cmd_prefix;
61 GdkColor colour_fore;
62 GdkColor colour_back;
63 } VteConfig;
64 extern VteConfig *vc;
67 void vte_init(void);
69 void vte_close(void);
71 void vte_apply_user_settings(void);
73 gboolean vte_send_cmd(const gchar *cmd);
75 const gchar *vte_get_working_directory(void);
77 void vte_cwd(const gchar *filename, gboolean force);
79 void vte_append_preferences_tab(void);
81 void vte_send_selection_to_vte(void);
83 void vte_select_all(void);
85 G_END_DECLS
87 #endif /* HAVE_VTE */
89 #endif /* GEANY_VTE_H */