git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit 3ffcfb07f3487e6026ce949f707890c6e082aced
parent a612ec0290360b3287b45f6be55b627bc708949e
Author: Rob King <jking@deadpixi.com>
Date:   Wed, 11 Apr 2018 14:04:45 -0500

Slightly cleaner title setting.

Diffstat:
Mmtm.c6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -489,8 +489,10 @@ static void updatetitle(void) /* update the current title - XXX this is remarkbly inefficient */ { if (dostatus && wcsncmp(title, focused->title, MAXTITLE) != 0){ - endwin(); - printf("\033]0;%ls\007", focused->title); + char newtitle[MAXTITLE + 1] = {0}; + snprintf(newtitle, MAXTITLE, "\033]0;%ls\007", focused->title); + doupdate(); + putp(newtitle); fflush(stdout); refresh(); wcsncpy(title, focused->title, MAXTITLE);

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.