aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--mt.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 6674c8a..f05715c 100644
--- a/config.mk
+++ b/config.mk
@@ -17,7 +17,7 @@ INCS = -I. -I/usr/include ${GTKINC}
LIBS = -L/usr/lib -lc ${GTKLIB}
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
-CFLAGS = -std=c99 -O3 -static ${INCS} ${CPPFLAGS}
+CFLAGS = -mtune=native -std=c99 -O3 ${INCS} ${CPPFLAGS}
LDFLAGS = -s ${LIBS}
# Solaris
diff --git a/mt.c b/mt.c
index e967d89..b0a8693 100644
--- a/mt.c
+++ b/mt.c
@@ -57,12 +57,14 @@ 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,
@@ -92,6 +94,7 @@ 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 (g == GDK_T) {
@@ -236,6 +239,7 @@ static void tab_new() {
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),
g_regex_new(url_regex, G_REGEX_CASELESS, G_REGEX_MATCH_NOTEMPTY, NULL),