Revision: 2697
          http://tmux.svn.sourceforge.net/tmux/?rev=2697&view=rev
Author:   tcunha
Date:     2012-02-02 02:01:18 +0000 (Thu, 02 Feb 2012)
Log Message:
-----------
Sync OpenBSD patchset 1025:

Add -l flag to send-keys to send input literally (without translating
key names). From Frank Terbeck.

Modified Paths:
--------------
    trunk/cmd-send-keys.c
    trunk/tmux.1

Modified: trunk/cmd-send-keys.c
===================================================================
--- trunk/cmd-send-keys.c       2012-02-02 02:00:12 UTC (rev 2696)
+++ trunk/cmd-send-keys.c       2012-02-02 02:01:18 UTC (rev 2697)
@@ -31,8 +31,8 @@
 
 const struct cmd_entry cmd_send_keys_entry = {
        "send-keys", "send",
-       "Rt:", 0, -1,
-       "[-R] [-t target-pane] key ...",
+       "lRt:", 0, -1,
+       "[-lR] [-t target-pane] key ...",
        0,
        NULL,
        NULL,
@@ -71,7 +71,8 @@
        for (i = 0; i < args->argc; i++) {
                str = args->argv[i];
 
-               if ((key = key_string_lookup_string(str)) != KEYC_NONE) {
+               if (!args_has(args, 'l') &&
+                   (key = key_string_lookup_string(str)) != KEYC_NONE) {
                            window_pane_key(wp, s, key);
                } else {
                        for (; *str != '\0'; str++)

Modified: trunk/tmux.1
===================================================================
--- trunk/tmux.1        2012-02-02 02:00:12 UTC (rev 2696)
+++ trunk/tmux.1        2012-02-02 02:01:18 UTC (rev 2697)
@@ -1650,7 +1650,7 @@
 or
 .Em emacs-copy .
 .It Xo Ic send-keys
-.Fl R
+.Op Fl lR
 .Op Fl t Ar target-pane
 .Ar key Ar ...
 .Xc
@@ -1664,6 +1664,9 @@
 .Ql npage
 ) to send; if the string is not recognised as a key, it is sent as a series of
 characters.
+The
+.Fl l
+flag disables key name lookup and sends the keys literally.
 All arguments are sent sequentially from first to last.
 The
 .Fl R

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