forked from pool/screen
971a59904d
- Update to 4.2.0 as released on screen-devel@gnu.org yesterday. Thank you Amadeusz! * keep libtinfo.diff (from coolo 2011, why exactly?) * keep global_screenrc.patch (renamed from screen-4.0.2.dif) * keep screen-man-loginshell.diff (to be upstreamed) * dropped screen-__P.diff (not needed) * keep term_too_long.diff (savannah#30880, to be upstreamed) * keep use_locale.diff (from lnt-sysadmin@lists.lrz.de 2012, check?) * keep screen-4.0.3-ipv6.patch (builtin telnet, to be upstreamed) * keep screen_enhance_windows_list.patch (to be upstreamed) * keep screen-poll-zombies.patch (to be upstreamed) * keep xX_string_escape.patch (renamed from show_all_active.patch, to be upstreamed) * keep sort_command.patch (from trenn 2011, to be upstreamed) * added msg_version_3.patch (ouch, incompatible protocol, to be upstreamed) - added %rundir with /var/run for 1310 and before; but /run afterwards. aj advocates /run for Factory; for 1310 it was banned by suse-filelist-forbidden-fhs23 OBS-URL: https://build.opensuse.org/request/show/230477 OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=53
44 lines
1.2 KiB
Diff
44 lines
1.2 KiB
Diff
screen: Introduce Xx string escape showing the executed command of a window
|
|
|
|
either only the executed command ('X') or the whole command line ('x') of
|
|
each window is shown.
|
|
|
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
|
|
--- ./doc/screen.1.orig 2013-09-13 13:26:28.055279274 +0000
|
|
+++ ./doc/screen.1 2013-09-13 13:26:41.385279250 +0000
|
|
@@ -3747,6 +3747,10 @@ window; with '+' qualifier: starting wit
|
|
one.
|
|
.IP W
|
|
all window numbers and names except the current one
|
|
+.IP x
|
|
+the executed command including arguments running in this windows
|
|
+.IP X
|
|
+the executed command without arguments running in this windows
|
|
.IP y
|
|
last two digits of the year number
|
|
.IP Y
|
|
--- ./screen.c.orig 2013-09-13 13:26:28.057279274 +0000
|
|
+++ ./screen.c 2013-09-13 13:34:30.151278421 +0000
|
|
@@ -2693,6 +2693,20 @@ int rec;
|
|
}
|
|
p += strlen(p) - 1;
|
|
break;
|
|
+ case 'X': case 'x':
|
|
+ *p = 0;
|
|
+ for (i = 0; win && win->w_cmdargs[i]; i++)
|
|
+ {
|
|
+ if (l < strlen(win->w_cmdargs[i]) + 1)
|
|
+ break;
|
|
+ sprintf(p, i ? "%s" : " %s", win->w_cmdargs[i]);
|
|
+ l -= strlen(p);
|
|
+ p += strlen(p);
|
|
+ if (i == 0 && *s == 'X')
|
|
+ break;
|
|
+ }
|
|
+ p--;
|
|
+ break;
|
|
case 'l':
|
|
#ifdef LOADAV
|
|
*p = 0;
|