forked from pool/screen
- Introduce Xx string escape showing the executed command of a window
patch: show_all_active.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=42
This commit is contained in:
parent
a13ce2fdf3
commit
8f5bf1353e
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 18 09:04:34 UTC 2013 - trenn@suse.de
|
||||||
|
|
||||||
|
- Introduce Xx string escape showing the executed command of a window
|
||||||
|
patch: show_all_active.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 5 19:06:46 UTC 2013 - trenn@suse.de
|
Tue Feb 5 19:06:46 UTC 2013 - trenn@suse.de
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ Patch9: use_locale.diff
|
|||||||
Patch10: screen-poll-zombies.patch
|
Patch10: screen-poll-zombies.patch
|
||||||
Patch11: screen_enhance_windows_list_1_3.patch
|
Patch11: screen_enhance_windows_list_1_3.patch
|
||||||
Patch12: screen_enhance_windows_list_2_3.patch
|
Patch12: screen_enhance_windows_list_2_3.patch
|
||||||
|
Patch13: show_all_active.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -75,6 +76,7 @@ Documentation: man page
|
|||||||
%patch10 -p1
|
%patch10 -p1
|
||||||
%patch11 -p1
|
%patch11 -p1
|
||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
|
%patch13 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="-DMAXWIN=1000 $RPM_OPT_FLAGS" %configure --prefix=/usr --infodir=%{_infodir} \
|
CFLAGS="-DMAXWIN=1000 $RPM_OPT_FLAGS" %configure --prefix=/usr --infodir=%{_infodir} \
|
||||||
|
50
show_all_active.patch
Normal file
50
show_all_active.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
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>
|
||||||
|
|
||||||
|
diff --git a/doc/screen.1 b/doc/screen.1
|
||||||
|
index 7a0c1de..57352f1 100644
|
||||||
|
--- a/doc/screen.1
|
||||||
|
+++ b/doc/screen.1
|
||||||
|
@@ -3750,6 +3750,10 @@ window; with '+' qualifier: starting with the window after the current
|
||||||
|
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
|
||||||
|
diff --git a/screen.c b/screen.c
|
||||||
|
index efb73d3..e8a553c 100644
|
||||||
|
--- a/screen.c
|
||||||
|
+++ b/screen.c
|
||||||
|
@@ -2681,6 +2681,23 @@ int rec;
|
||||||
|
}
|
||||||
|
p += strlen(p) - 1;
|
||||||
|
break;
|
||||||
|
+ case 'X': case 'x':
|
||||||
|
+ if (!win)
|
||||||
|
+ break;
|
||||||
|
+ if (win->w_cmdargs[0]) {
|
||||||
|
+ sprintf(p, "%s", win->w_cmdargs[0]);
|
||||||
|
+ p += strlen(p);
|
||||||
|
+ }
|
||||||
|
+ else
|
||||||
|
+ break;
|
||||||
|
+ if (*s == 'x') {
|
||||||
|
+ for (i = 1; win->w_cmdargs[i]; i++) {
|
||||||
|
+ sprintf(p, " %s", win->w_cmdargs[i]);
|
||||||
|
+ p += strlen(p);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ p--;
|
||||||
|
+ break;
|
||||||
|
case 'l':
|
||||||
|
#ifdef LOADAV
|
||||||
|
*p = 0;
|
Loading…
Reference in New Issue
Block a user