Revision: 2661
          http://tmux.svn.sourceforge.net/tmux/?rev=2661&view=rev
Author:   tcunha
Date:     2012-01-20 21:18:39 +0000 (Fri, 20 Jan 2012)
Log Message:
-----------
Sync OpenBSD patchset 999:

Add an option to disable the window rename escape sequence, from Romain
Francoise.

Modified Paths:
--------------
    trunk/input.c
    trunk/options-table.c
    trunk/tmux.1

Modified: trunk/input.c
===================================================================
--- trunk/input.c       2012-01-20 21:17:18 UTC (rev 2660)
+++ trunk/input.c       2012-01-20 21:18:39 UTC (rev 2661)
@@ -1558,6 +1558,8 @@
 {
        if (ictx->flags & INPUT_DISCARD)
                return;
+       if (!options_get_number(&ictx->wp->window->options, "allow-rename"))
+               return;
        log_debug("%s: \"%s\"", __func__, ictx->input_buf);
 
        xfree(ictx->wp->window->name);

Modified: trunk/options-table.c
===================================================================
--- trunk/options-table.c       2012-01-20 21:17:18 UTC (rev 2660)
+++ trunk/options-table.c       2012-01-20 21:18:39 UTC (rev 2661)
@@ -435,6 +435,11 @@
          .default_num = 0
        },
 
+       { .name = "allow-rename",
+         .type = OPTIONS_TABLE_FLAG,
+         .default_num = 1
+       },
+
        { .name = "alternate-screen",
          .type = OPTIONS_TABLE_FLAG,
          .default_num = 1

Modified: trunk/tmux.1
===================================================================
--- trunk/tmux.1        2012-01-20 21:17:18 UTC (rev 2660)
+++ trunk/tmux.1        2012-01-20 21:18:39 UTC (rev 2661)
@@ -2346,6 +2346,13 @@
 .Dv SIGWINCH
 and poor for interactive programs such as shells.
 .Pp
+.It Xo Ic allow-rename
+.Op Ic on | off
+.Xc
+Allow programs to change the window name using a terminal escape
+sequence (\\033k...\\033\\\\).
+The default is on.
+.Pp
 .It Xo Ic alternate-screen
 .Op Ic on | off
 .Xc

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to