diff options
author | Vic Fryzel <vicfryzel@gmail.com> | 2010-07-14 18:52:26 -0400 |
---|---|---|
committer | Vic Fryzel <vicfryzel@gmail.com> | 2010-07-14 18:52:26 -0400 |
commit | dbede10ebe4c3c163fa4aae25aadfd16633c7982 (patch) | |
tree | a7c5656092151927c9653afaf703da2d9c736987 | |
parent | b44f6be953758af5d28c2481c149a015098fdb95 (diff) |
Adding mechanism for disabling bold fonts.
-rw-r--r-- | mt.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -56,12 +56,15 @@ 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, @@ -231,6 +234,7 @@ 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), |