diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2014-01-23 16:51:29 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2014-01-23 16:51:29 +0000 |
commit | cf202bd2d2b6b201214f373486fcc8bb9a4fd001 (patch) | |
tree | ec6a9fba6fff06659a7deedfcf1d444445ddffb1 /app | |
parent | 3396df0866046b150cd42f5bdab8632ab7d38b87 (diff) |
If no title is supplied, term uses only the basename for its title.
This is useless when searching for windows launched via the ssh command
menu; supply a more useful title: '[ssh] <hostname>'.
Idea from todd@, ok todd@
Diffstat (limited to 'app')
-rw-r--r-- | app/cwm/kbfunc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c index fc1167683..b4fc3e5b5 100644 --- a/app/cwm/kbfunc.c +++ b/app/cwm/kbfunc.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: kbfunc.c,v 1.92 2014/01/22 22:41:09 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.93 2014/01/23 16:51:28 okan Exp $ */ #include <sys/param.h> @@ -354,8 +354,8 @@ kbfunc_ssh(struct client_ctx *cc, union arg *arg) search_match_exec, NULL)) != NULL) { if (mi->text[0] == '\0') goto out; - l = snprintf(cmd, sizeof(cmd), "%s -e ssh %s", Conf.termpath, - mi->text); + l = snprintf(cmd, sizeof(cmd), "%s -T '[ssh] %s' -e ssh %s", + Conf.termpath, mi->text, mi->text); if (l != -1 && l < sizeof(cmd)) u_spawn(cmd); } |