-title support

modified [w3m-dev-en 00710] contrib: unofficial "xterm title" patch, updated for w3m-0.3
  by Moritz Barsnick <barsnick@gmx.net>
* 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  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2002-03-15 18:33:31 +00:00
parent 563cc280e4
commit d2f5a95a9b
7 changed files with 83 additions and 21 deletions

View File

@@ -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 <signal.h>
#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) {