2005-11-27 20:54:28 +00:00
|
|
|
/*
|
|
|
|
* vte.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2012-06-18 01:13:05 +02:00
|
|
|
* Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2012 Nick Treleaven <<nick(dot)treleaven(at)btinternet(dot)com>
|
2005-11-27 20:54:28 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2012-08-24 19:25:57 +02:00
|
|
|
* 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.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2005-11-27 20:54:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GEANY_VTE_H
|
|
|
|
#define GEANY_VTE_H 1
|
|
|
|
|
2006-11-24 11:47:29 +00:00
|
|
|
#ifdef HAVE_VTE
|
|
|
|
|
2014-05-18 17:31:51 -07:00
|
|
|
#include "gtkcompat.h"
|
2014-05-18 17:07:50 -07:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2005-11-27 20:54:28 +00:00
|
|
|
|
2006-08-22 19:03:38 +00:00
|
|
|
typedef struct
|
2006-08-19 15:07:11 +00:00
|
|
|
{
|
2010-12-07 13:02:46 +00:00
|
|
|
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 */
|
2006-08-19 15:07:11 +00:00
|
|
|
gchar *lib_vte;
|
|
|
|
gchar *dir;
|
|
|
|
} VteInfo;
|
|
|
|
|
|
|
|
extern VteInfo vte_info;
|
2006-08-22 19:03:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
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;
|
2006-12-10 21:29:04 +00:00
|
|
|
gboolean run_in_vte;
|
2007-12-17 16:58:26 +00:00
|
|
|
gboolean skip_run_script;
|
2007-10-02 16:20:44 +00:00
|
|
|
gboolean enable_bash_keys;
|
2008-12-07 19:11:36 +00:00
|
|
|
gboolean cursor_blinks;
|
2009-11-29 20:59:31 +00:00
|
|
|
gboolean send_selection_unsafe;
|
2006-08-22 19:03:38 +00:00
|
|
|
gint scrollback_lines;
|
|
|
|
gchar *emulation;
|
|
|
|
gchar *shell;
|
2012-12-18 10:26:48 +01:00
|
|
|
gchar *image;
|
2006-08-22 19:03:38 +00:00
|
|
|
gchar *font;
|
2011-11-17 03:36:11 +01:00
|
|
|
gchar *send_cmd_prefix;
|
2013-12-05 20:16:54 +01:00
|
|
|
GdkColor colour_fore;
|
|
|
|
GdkColor colour_back;
|
2006-08-22 19:03:38 +00:00
|
|
|
} VteConfig;
|
2008-02-20 11:24:23 +00:00
|
|
|
extern VteConfig *vc;
|
2006-08-19 15:07:11 +00:00
|
|
|
|
|
|
|
|
2005-11-27 20:54:28 +00:00
|
|
|
void vte_init(void);
|
|
|
|
|
|
|
|
void vte_close(void);
|
|
|
|
|
2005-12-11 02:16:02 +00:00
|
|
|
void vte_apply_user_settings(void);
|
|
|
|
|
2007-12-06 16:38:13 +00:00
|
|
|
gboolean vte_send_cmd(const gchar *cmd);
|
2006-06-29 23:51:32 +00:00
|
|
|
|
2009-02-04 19:52:44 +00:00
|
|
|
const gchar *vte_get_working_directory(void);
|
2006-08-30 18:53:45 +00:00
|
|
|
|
2006-12-10 21:29:04 +00:00
|
|
|
void vte_cwd(const gchar *filename, gboolean force);
|
2006-08-19 15:07:11 +00:00
|
|
|
|
2008-02-20 11:24:23 +00:00
|
|
|
void vte_append_preferences_tab(void);
|
2006-11-24 11:47:29 +00:00
|
|
|
|
2009-02-25 23:28:01 +00:00
|
|
|
void vte_send_selection_to_vte(void);
|
2005-11-27 20:54:28 +00:00
|
|
|
|
2010-07-29 18:28:37 +00:00
|
|
|
void vte_select_all(void);
|
|
|
|
|
2014-05-18 17:07:50 -07:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* HAVE_VTE */
|
2005-11-27 20:54:28 +00:00
|
|
|
|
2014-05-18 17:07:50 -07:00
|
|
|
#endif /* GEANY_VTE_H */
|