From d2f5a95a9b6212c7f6ba462131b9d3e6aec94db5 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 15 Mar 2002 18:33:31 +0000 Subject: -title support modified [w3m-dev-en 00710] contrib: unofficial "xterm title" patch, updated for w3m-0.3 by Moritz Barsnick * NEWS: -title * fm.h (displayTitleTerm): added * proto.h (term_title): added * main.c (fusage): add -title (MAIN): add -title (quitfm): term_title("") * display.c (displayBuffer): term_title() * terms.c (title_str): added (TERM_INFO): added (term_info): modified from mouse_term_info (term_info_list): modified from xterm_mouse_term add "screen" (set_tty): check displayTitleTerm (term_title): added From: Fumitoshi UKAI --- display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'display.c') diff --git a/display.c b/display.c index 38b708e..2a95716 100644 --- a/display.c +++ b/display.c @@ -1,4 +1,4 @@ -/* $Id: display.c,v 1.21 2002/03/10 15:55:15 ukai Exp $ */ +/* $Id: display.c,v 1.22 2002/03/15 18:33:32 ukai Exp $ */ #include #include "fm.h" @@ -383,6 +383,7 @@ displayBuffer(Buffer *buf, int mode) standout(); message(msg->ptr, buf->cursorX + buf->rootX, buf->cursorY); standend(); + term_title(buf->buffername); refresh(); #ifdef USE_IMAGE if (activeImage && displayImage && buf->img) { -- cgit v1.2.3