dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 75e2bd8a00541166b8b7d845a14d0dd617afcd49
parent 287d380486596c8965841229e545e5d779506de5
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Wed, 20 Nov 2013 22:04:03 +0100

Don't output window title if run from linux framebuffer console

This is a hack, the code assumes all terminals except the linux
console support the xterm extension for setting the window title.

Diffstat:
dvtm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -379,10 +379,10 @@ detach(Client *c) { static void settitle(Client *c) { - char *t = title; + char *term, *t = title; if (!t && sel == c && *c->title) t = c->title; - if (t) + if (t && (term = getenv("TERM")) && !strstr(term, "linux")) printf("\033]0;%s\007", t); }