forked from pool/screen
61 lines
1.8 KiB
Diff
61 lines
1.8 KiB
Diff
|
screen: Remove foreground and other window marking workaround
|
||
|
|
||
|
and place it where it always should have been in the generic AddWindowsFlag
|
||
|
function.
|
||
|
|
||
|
The actual implementation when this workaround was added is beyond git
|
||
|
history. This was needed to implement a very specific String Escape (wW)
|
||
|
function:
|
||
|
w all window numbers and names. With '-' quailifier: up to the
|
||
|
current window; with '+' qualifier: starting with the window
|
||
|
after the current one.
|
||
|
|
||
|
W all window numbers and names except the current one
|
||
|
|
||
|
But adding all windows to a String Escape does not make much sense and
|
||
|
may only fit for a very specific special case.
|
||
|
Better clean up the code, whoever needed wW String Escapes can use windows
|
||
|
command nowadays.
|
||
|
|
||
|
Later the whole wW String Escape should vanish in favor for the
|
||
|
String Escaped windows command which can do the same but much more flexible.
|
||
|
|
||
|
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
||
|
|
||
|
Index: screen-4.0.4/process.c
|
||
|
===================================================================
|
||
|
---
|
||
|
src/process.c | 6 ------
|
||
|
1 files changed, 0 insertions(+), 6 deletions(-)
|
||
|
|
||
|
diff --git a/process.c b/process.c
|
||
|
index bbc46e6..7370924 100644
|
||
|
--- a/process.c
|
||
|
+++ b/process.c
|
||
|
@@ -5507,12 +5507,8 @@ int where;
|
||
|
AddWinMsgRend(s, rend);
|
||
|
sprintf(s, "%d", p->w_number);
|
||
|
s += strlen(s);
|
||
|
- if (display && p == D_fore)
|
||
|
- *s++ = '*';
|
||
|
if (!(flags & 2))
|
||
|
{
|
||
|
- if (display && p == D_other)
|
||
|
- *s++ = '-';
|
||
|
s = AddWindowFlags(s, len, p);
|
||
|
}
|
||
|
*s++ = ' ';
|
||
|
@@ -5537,12 +5533,10 @@ struct win *p;
|
||
|
*s = 0;
|
||
|
return s;
|
||
|
}
|
||
|
-#if 0
|
||
|
if (display && p == D_fore)
|
||
|
*s++ = '*';
|
||
|
if (display && p == D_other)
|
||
|
*s++ = '-';
|
||
|
-#endif
|
||
|
if (p->w_layer.l_cvlist && p->w_layer.l_cvlist->c_lnext)
|
||
|
*s++ = '&';
|
||
|
if (p->w_monitor == MON_DONE
|