From d859e35dea5b0a5574c12e07fc8457886c7fdefa Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 22 May 2012 00:55:48 -0400 Subject: [PATCH] expose more VTE settings --- config.h | 5 +++++ term.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/config.h b/config.h index 65b4300..d7eb03b 100644 --- a/config.h +++ b/config.h @@ -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 diff --git a/term.c b/term.c index 37c2381..f3fceb7 100644 --- a/term.c +++ b/term.c @@ -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;