diff options
author | mutantturkey <crazycal00@gmail.com> | 2010-06-08 18:56:10 -0400 |
---|---|---|
committer | mutantturkey <crazycal00@gmail.com> | 2010-06-08 18:56:10 -0400 |
commit | 7372e18f6b2231490ab765df8b587e9fe4e8c5c9 (patch) | |
tree | ea88148919d2b5072ca1329a5a5242be5ba87106 | |
parent | 1805c3455cd32174e88cc915190f3c34e2c1b9ff (diff) | |
parent | a37a3c96f8f67ad5da4a8ef99ba190060cc39062 (diff) |
merge vicfryzels branch hopefully :)
-rw-r--r-- | mt.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -56,12 +56,17 @@ static GQuark term_data_id = 0; static gchar *font = "monospace 10"; static gboolean fullscreen = FALSE; +static gboolean nobold = FALSE; + static int scroll = -1; static gboolean transparent = FALSE; static gchar *url_regex = "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*"; static gboolean version = FALSE; static GOptionEntry options[] = { + + { "nobold", 'b', 0, G_OPTION_ARG_NONE, &nobold, + "Disable bold fonts", NULL }, { "font", 'f', 0, G_OPTION_ARG_STRING, &font, "Font to use for displaying text", NULL }, { "fullscreen", 'l', 0, G_OPTION_ARG_NONE, &fullscreen, @@ -89,8 +94,9 @@ static void quit() { gboolean key_press_cb(GtkWidget *widget, GdkEventKey *event) { guint(g) = event->keyval; - if ((event->state & - (GDK_CONTROL_MASK|GDK_SHIFT_MASK) == (GDK_CONTROL_MASK|GDK_SHIFT_MASK))) { + + if ((event->state & (GDK_CONTROL_MASK|GDK_SHIFT_MASK)) == + (GDK_CONTROL_MASK|GDK_SHIFT_MASK)) { if (g == GDK_T) { tab_new(); return TRUE; @@ -231,6 +237,8 @@ static void tab_new() { g_signal_connect(mt.win, "button-press-event", G_CALLBACK(button_press_cb), t); vte_terminal_set_background_transparent(VTE_TERMINAL(t->vte), transparent); + vte_terminal_set_allow_bold(VTE_TERMINAL(t->vte), !nobold); + *tmp = vte_terminal_match_add_gregex( VTE_TERMINAL(t->vte), |