Revision: 2653
          http://tmux.svn.sourceforge.net/tmux/?rev=2653&view=rev
Author:   tcunha
Date:     2011-12-30 14:19:21 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
Sync OpenBSD patchset 992:

Add \033[s and \033[u to save and restore cursor position.

Modified Paths:
--------------
    trunk/input.c

Modified: trunk/input.c
===================================================================
--- trunk/input.c       2011-12-30 14:18:27 UTC (rev 2652)
+++ trunk/input.c       2011-12-30 14:19:21 UTC (rev 2653)
@@ -135,8 +135,10 @@
        INPUT_CSI_HPA,
        INPUT_CSI_ICH,
        INPUT_CSI_IL,
+       INPUT_CSI_RCP,
        INPUT_CSI_RM,
        INPUT_CSI_RM_PRIVATE,
+       INPUT_CSI_SCP,
        INPUT_CSI_SGR,
        INPUT_CSI_SM,
        INPUT_CSI_SM_PRIVATE,
@@ -171,6 +173,8 @@
        { 'n', "",  INPUT_CSI_DSR },
        { 'q', " ", INPUT_CSI_DECSCUSR },
        { 'r', "",  INPUT_CSI_DECSTBM },
+       { 's', "",  INPUT_CSI_SCP },
+       { 'u', "",  INPUT_CSI_RCP },
 };
 
 /* Input transition. */
@@ -1168,6 +1172,10 @@
        case INPUT_CSI_IL:
                screen_write_insertline(sctx, input_get(ictx, 0, 1, 1));
                break;
+       case INPUT_CSI_RCP:
+               memcpy(&ictx->cell, &ictx->old_cell, sizeof ictx->cell);
+               screen_write_cursormove(sctx, ictx->old_cx, ictx->old_cy);
+               break;
        case INPUT_CSI_RM:
                switch (input_get(ictx, 0, 0, -1)) {
                case 4:         /* IRM */
@@ -1207,6 +1215,11 @@
                        break;
                }
                break;
+       case INPUT_CSI_SCP:
+               memcpy(&ictx->old_cell, &ictx->cell, sizeof ictx->old_cell);
+               ictx->old_cx = s->cx;
+               ictx->old_cy = s->cy;
+               break;
        case INPUT_CSI_SGR:
                input_csi_dispatch_sgr(ictx);
                break;

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


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to