1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 18manpage_maxwin_limit.dpatch by <hesso@pool.math.tu-berlin.de>
4
## DP: The builtin 'screen' command can directly reference window IDs
5
## DP: up to MAXWIN, not only {0-9}. Additionally mention Debian's
6
## DP: MAXWIN default in the man and info pages.
9
diff -Naur screen-4.0.3.orig/doc/screen.1 screen-4.0.3/doc/screen.1
10
--- screen-4.0.3.orig/doc/screen.1 2008-06-01 23:44:57.000000000 +0200
11
+++ screen-4.0.3/doc/screen.1 2008-06-01 23:44:57.000000000 +0200
13
and scrollback option (\fB-h\fP <num>) may be specified with each command.
14
The option (\fB-M\fP) turns monitoring on for this window.
15
The option (\fB-L\fP) turns output logging on for this window.
16
-If an optional number \fIn\fP in the range 0..9 is given, the window
17
-number \fIn\fP is assigned to the newly created window (or, if this
18
-number is already in-use, the next available number).
19
+If an optional number \fIn\fP in the range 0..MAXWIN-1 is given,
20
+the window number \fIn\fP is assigned to the newly created window
21
+(or, if this number is already in-use, the next available number).
22
If a command is specified after \*Qscreen\*U, this command (with the given
23
arguments) is started in the window; otherwise, a shell is created.
24
Thus, if your \*Q.screenrc\*U contains the lines
26
is assigned to this window.
27
Thus, the first window can be activated by \*Qselect 0\*U.
28
The number of windows is limited at compile-time by the MAXWIN
29
-configuration parameter.
30
+configuration parameter (which defaults to 40 in Debian).
31
There are two special WindowIDs, \*Q-\*U selects the
32
internal blank window and \*Q.\*U selects the current window. The
33
latter is useful if used with screen's \*Q-X\*U option.
34
diff -Naur screen-4.0.3.orig/doc/screen.texinfo screen-4.0.3/doc/screen.texinfo
35
--- screen-4.0.3.orig/doc/screen.texinfo 2008-06-01 23:44:57.000000000 +0200
36
+++ screen-4.0.3/doc/screen.texinfo 2008-06-01 23:44:57.000000000 +0200
39
This section describes the commands for creating a new window for
40
running programs. When a new window is created, the first available
41
-number from the range 0@dots{}9 is assigned to it.
42
+number is assigned to it.
43
The number of windows is limited at compile-time by the MAXWIN
44
-configuration parameter.
45
+configuration parameter (which defaults to 40 in Debian).
48
* Chdir:: Change the working directory for new windows.
50
(@samp{-h @var{num}}) may be specified with each command.
51
The option (@samp{-M}) turns monitoring on for this window.
52
The option (@samp{-L}) turns output logging on for this window.
53
-If an optional number @var{n} in the range 0@dots{}9 is given,
54
+If an optional number @var{n} in the range 0@dots{}MAXWIN-1 is given,
55
the window number @var{n} is assigned to the newly created window (or,
56
if this number is already in-use, the next available number). If a
57
command is specified after @code{screen}, this command (with the given