[О блоге] [наверх] [пред] [2019-11-25 10:53:33+03:00] [a24b31d9e133ad261dadfccf115f28ca5af77ed5]
Темы: [tip][tmux]

Патч на заголовок Lynx в tmux

В продолжении 5921d398e70fd8227bbeaae070604ffef7357d55 осилил-таки
перерисовку окна (без необходимости нажимать Ctrl-L) добавлением одной
строки. Теперь куда меньше геморроя!

--- src/GridText.c.orig	2017-07-04 20:27:07.000000000 +0300
+++ src/GridText.c	2019-11-25 10:49:48.406034000 +0300
@@ -1658,6 +1658,17 @@
     if (!text)
 	return;

+    /*
+     * Load the title field.  -FM
+     */
+    StrAllocCopy(title,
+		 (HTAnchor_title(text->node_anchor) ?
+		  HTAnchor_title(text->node_anchor) : " "));	/* "" -> " " */
+    LYReduceBlanks(title);
+    printf("\033]2;%s\a\n", title);
+    lynx_force_repaint();
+    LYrefresh();
+
     lynx_start_title_color();
 #ifdef USE_COLOR_STYLE
 /* turn the TITLE style on */
@@ -1667,14 +1678,6 @@
 	LynxChangeStyle(s_title, ABS_ON);
     }
 #endif /* USE_COLOR_STYLE */
-
-    /*
-     * Load the title field.  -FM
-     */
-    StrAllocCopy(title,
-		 (HTAnchor_title(text->node_anchor) ?
-		  HTAnchor_title(text->node_anchor) : " "));	/* "" -> " " */
-    LYReduceBlanks(title);

     /*
      * Generate the page indicator (percent) string.

    [оставить комментарий]