]> git.pld-linux.org Git - packages/screen.git/blob - screen-osc.patch
- rel 18
[packages/screen.git] / screen-osc.patch
1 diff -ur -x Makefile -x configure -x screen.info screen-4.0.3/ansi.c screen-4.0.3.wiget/ansi.c
2 --- screen-4.0.3/ansi.c 2003-12-05 14:57:05.000000000 +0100
3 +++ screen-4.0.3.wiget/ansi.c   2008-03-21 22:19:42.000000000 +0100
4 @@ -1496,12 +1496,14 @@
5         }
6  #endif
7  #ifdef RXVT_OSC
8 -      if (typ == 0 || typ == 1 || typ == 20 || typ == 39 || typ == 49)
9 +      if (typ == 0 || typ == 1 || typ == 20 || typ == 39 || typ == 49 || typ == 10 || typ == 11 )
10         {
11           int typ2;
12           typ2 = typ / 10;
13           if (--typ2 < 0)
14             typ2 = 0;
15 +         if (typ == 10) typ2 = 4;
16 +         if (typ == 11) typ2 = 5;
17           if (strcmp(curr->w_xtermosc[typ2], p))
18             {
19               strncpy(curr->w_xtermosc[typ2], p, sizeof(curr->w_xtermosc[typ2]) - 1);
20 @@ -1513,7 +1516,7 @@
21                     continue;
22                   if (D_forecv->c_layer->l_bottom == &curr->w_layer)
23                     SetXtermOSC(typ2, curr->w_xtermosc[typ2]);
24 -                 if ((typ2 == 2 || typ2 == 3) && D_xtermosc[typ2])
25 +                 if ((typ2 == 2 || typ2 == 3 || typ2 == 4 || typ2 == 5) && D_xtermosc[typ2])
26                     Redisplay(0);
27                 }
28             }
29 Tylko w screen-4.0.3.wiget: ansi.c~
30 Tylko w screen-4.0.3.wiget: autom4te.cache
31 Tylko w screen-4.0.3.wiget: config.h
32 Tylko w screen-4.0.3.wiget: config.log
33 Tylko w screen-4.0.3.wiget: config.status
34 diff -ur -x Makefile -x configure -x screen.info screen-4.0.3/display.c screen-4.0.3.wiget/display.c
35 --- screen-4.0.3/display.c      2003-12-05 14:45:41.000000000 +0100
36 +++ screen-4.0.3.wiget/display.c        2008-03-21 22:21:46.000000000 +0100
37 @@ -3053,7 +3053,7 @@
38  int i;
39  char *s;
40  {
41 -  static char oscs[] = "1;\000\00020;\00039;\00049;\000";
42 +  static char oscs[] = "1;\000\00020;\00039;\00049;\00010;\00011;\000";
43  
44    ASSERT(display);
45    if (!D_CXT)
46 @@ -3066,22 +3066,26 @@
47      s = "screen";              /* always set icon name */
48    if (i == 1 && !*s)
49      s = "";                    /* no background */
50 -  if (i == 2 && !*s)
51 +  if ((i == 2 || i == 4) && !*s)
52      s = "black";               /* black text */
53 -  if (i == 3 && !*s)
54 +  if ((i == 3 || i == 5) && !*s)
55      s = "white";               /* on white background */
56    D_xtermosc[i] = 1;
57    AddStr("\033]");
58    AddStr(oscs + i * 4);
59    AddStr(s);
60 -  AddChar(7);
61 +  if ((i == 4) || (i == 5)) {
62 +    AddStr("\033\\");
63 +  } else {
64 +    AddChar(7);
65 +  }
66  }
67  
68  void
69  ClearAllXtermOSC()
70  {
71    int i;
72 -  for (i = 3; i >= 0; i--)
73 +  for (i = 5; i >= 0; i--)
74      SetXtermOSC(i, 0);
75  }
76  #endif
77 Tylko w screen-4.0.3.wiget: display.c~
78 diff -ur -x Makefile -x configure -x screen.info screen-4.0.3/display.h screen-4.0.3.wiget/display.h
79 --- screen-4.0.3/display.h      2003-07-01 16:01:42.000000000 +0200
80 +++ screen-4.0.3.wiget/display.h        2008-03-21 22:08:44.000000000 +0100
81 @@ -113,7 +113,7 @@
82    int  d_lp_missing;           /* last character on bot line missing */
83    int   d_mouse;               /* mouse mode */
84  #ifdef RXVT_OSC
85 -  int   d_xtermosc[4];         /* osc used */
86 +  int   d_xtermosc[6];         /* osc used */
87  #endif
88    struct mchar d_lpchar;       /* missing char */
89    struct timeval d_status_time;        /* time of status display */
This page took 0.041956 seconds and 3 git commands to generate.