- update to screen-4.0.4devel
OBS-URL: https://build.opensuse.org/package/show/Base:System/screen?expand=0&rev=28
This commit is contained in:
@@ -1,48 +1,31 @@
|
||||
screen: Introduce sort command
|
||||
|
||||
:sort
|
||||
will sort all active screen windows ordered by title.
|
||||
Limitations:
|
||||
- Will only work in overview window (CTRL-a-")
|
||||
- For unknown reasons does not always work.
|
||||
Encountered on a screen session with about 100 active
|
||||
windows and several users active, that the sorting
|
||||
does not always take place.
|
||||
|
||||
Still, this command is very helpful for users who use
|
||||
screen sessions with a huge amount of active windows.
|
||||
|
||||
Might apply with line offset to latest screen sources.
|
||||
Got tested intensively with our screen over the last
|
||||
years.
|
||||
|
||||
Please apply.
|
||||
|
||||
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
||||
|
||||
comm.c | 1 +
|
||||
doc/screen.1 | 5 +++++
|
||||
process.c | 41 +++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 47 insertions(+)
|
||||
|
||||
Index: screen-4.0.3/comm.c
|
||||
===================================================================
|
||||
--- screen-4.0.3.orig/comm.c
|
||||
+++ screen-4.0.3/comm.c
|
||||
@@ -283,6 +283,7 @@ struct comm comms[RC_LAST + 1] =
|
||||
--- ./comm.c.orig 2012-06-08 15:20:17.000000000 +0000
|
||||
+++ ./comm.c 2012-06-08 16:03:10.000000000 +0000
|
||||
@@ -297,6 +297,7 @@ struct comm comms[RC_LAST + 1] =
|
||||
{ "sleep", ARGS_1 },
|
||||
{ "slowpaste", NEED_FORE|ARGS_01 },
|
||||
{ "sorendition", ARGS_012 },
|
||||
+ { "sort", ARGS_0 },
|
||||
{ "source", ARGS_1 },
|
||||
{ "split", NEED_DISPLAY|ARGS_0 },
|
||||
{ "split", NEED_DISPLAY|ARGS_01 },
|
||||
{ "startup_message", ARGS_1 },
|
||||
Index: screen-4.0.3/process.c
|
||||
===================================================================
|
||||
--- screen-4.0.3.orig/process.c
|
||||
+++ screen-4.0.3/process.c
|
||||
@@ -2794,6 +2794,47 @@ int key;
|
||||
WindowChanged((struct win *)0, 0);
|
||||
--- ./doc/screen.1.orig 2012-06-08 16:02:58.000000000 +0000
|
||||
+++ ./doc/screen.1 2012-06-08 16:03:10.000000000 +0000
|
||||
@@ -3015,6 +3015,11 @@ underlying system exposes flow control p
|
||||
text.
|
||||
.sp
|
||||
.ne 3
|
||||
+.B sort
|
||||
+.PP
|
||||
+Sort the windows in alphabetical order of the window tiles.
|
||||
+.sp
|
||||
+.ne 3
|
||||
.BI "source " file
|
||||
.PP
|
||||
Read and execute commands from file \fIfile\fP. Source commands may
|
||||
--- ./process.c.orig 2012-06-08 15:20:18.000000000 +0000
|
||||
+++ ./process.c 2012-06-08 16:03:10.000000000 +0000
|
||||
@@ -3024,6 +3024,47 @@ int key;
|
||||
}
|
||||
}
|
||||
break;
|
||||
+ case RC_SORT:
|
||||
@@ -89,19 +72,3 @@ Index: screen-4.0.3/process.c
|
||||
case RC_SILENCE:
|
||||
n = fore->w_silence != 0;
|
||||
i = fore->w_silencewait;
|
||||
Index: screen-4.0.3/doc/screen.1
|
||||
===================================================================
|
||||
--- screen-4.0.3.orig/doc/screen.1
|
||||
+++ screen-4.0.3/doc/screen.1
|
||||
@@ -2678,6 +2678,11 @@ underlying system exposes flow control p
|
||||
text.
|
||||
.sp
|
||||
.ne 3
|
||||
+.B sort
|
||||
+.PP
|
||||
+Sort the windows in alphabetical order of the window tiles.
|
||||
+.sp
|
||||
+.ne 3
|
||||
.BI "source " file
|
||||
.PP
|
||||
Read and execute commands from file \fIfile\fP. Source commands may
|
||||
|
Reference in New Issue
Block a user