expose more VTE settings

This commit is contained in:
Daniel Micay 2012-05-22 00:55:48 -04:00
parent e4a92c7efd
commit d859e35dea
2 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,11 @@ static const char *colors[16] = {
static const bool scroll_on_output = false;
static const bool scroll_on_keystroke = true;
static const bool audible_bell = false;
static const bool visible_bell = false;
static const bool mouse_autohide = false;
static const char *term = "xterm-256color";
#endif

3
term.c
View File

@ -49,6 +49,9 @@ int main(int argc, char **argv) {
vte_terminal_set_font_from_string(VTE_TERMINAL(vte), font);
vte_terminal_set_scroll_on_output(VTE_TERMINAL(vte), scroll_on_output);
vte_terminal_set_scroll_on_keystroke(VTE_TERMINAL(vte), scroll_on_keystroke);
vte_terminal_set_audible_bell(VTE_TERMINAL(vte), audible_bell);
vte_terminal_set_visible_bell(VTE_TERMINAL(vte), visible_bell);
vte_terminal_set_mouse_autohide(VTE_TERMINAL(vte), mouse_autohide);
// set colors
GdkColor foreground, background;