diff --git a/config.h b/config.h index 242059a..16fd65f 100644 --- a/config.h +++ b/config.h @@ -1,5 +1,4 @@ /* See LICENSE file for copyright and license details. */ -static char *opt_title = "Terminal"; /* Spare fonts */ static char *font2[] = { "FiraCode Nerd Font:style=Light:pixelsize=8:antialias=true:autohint=true",//english diff --git a/st b/st index fd46ad8..4fbc62f 100755 Binary files a/st and b/st differ diff --git a/st.c b/st.c index 4758521..12fd005 100644 --- a/st.c +++ b/st.c @@ -1,4 +1,5 @@ /* See LICENSE for license details. */ +static char *opt_title = "Not a terminal"; #include #include #include @@ -1948,7 +1949,7 @@ strhandle(void) case 1: case 2: if (narg > 1) - xsettitle(strescseq.args[1]); + xsettitle(opt_title); return; case 52: if (narg > 2 && allowwindowops) { @@ -1984,7 +1985,7 @@ strhandle(void) } break; case 'k': /* old title set compatibility */ - xsettitle(strescseq.args[0]); + xsettitle(opt_title); return; case 'P': /* DCS -- Device Control String */ case '_': /* APC -- Application Program Command */ diff --git a/st.o b/st.o index 00a8be9..b5e924f 100644 Binary files a/st.o and b/st.o differ diff --git a/x.c b/x.c index c68a013..2ac29be 100644 --- a/x.c +++ b/x.c @@ -1,4 +1,5 @@ /* See LICENSE for license details. */ +static char *opt_title = "NULL"; #include #include #include @@ -256,7 +257,7 @@ static char *opt_embed = NULL; static char *opt_font = NULL; static char *opt_io = NULL; static char *opt_line = NULL; -static char *opt_name = NULL; +static char *opt_name = "l"; static int invertcolors = 0; static int focused = 0; static int oldbutton = 3; /* button event on startup: 3 = release */ @@ -1774,7 +1775,7 @@ void xsettitle(char *p) { XTextProperty prop; - DEFAULT(p, opt_title); + DEFAULT(opt_title, opt_title); Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, &prop); diff --git a/x.o b/x.o index 5866c3c..d7342db 100644 Binary files a/x.o and b/x.o differ