[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[screen-devel] [PATCH 1/3] screen: Remove foreground and other window ma
From: |
Thomas Renninger |
Subject: |
[screen-devel] [PATCH 1/3] screen: Remove foreground and other window marking workaround |
Date: |
Tue, 12 Feb 2013 00:07:53 +0100 |
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 <address@hidden>
Signed-off-by: Thomas Renninger <Thomas Renninger" address@hidden>
---
src/process.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/process.c b/src/process.c
index bbc46e6..7370924 100644
--- a/src/process.c
+++ b/src/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
--
1.7.6.1
- [screen-devel] Extend windows command, introduce Xx string escape, Thomas Renninger, 2013/02/11
- [screen-devel] [PATCH 1/3] screen: Remove foreground and other window marking workaround,
Thomas Renninger <=
- [screen-devel] [PATCH 3/3] screen: Introduce Xx string escape showing the executed command of a window, Thomas Renninger, 2013/02/11
- [screen-devel] [PATCH 2/3] screen: Introduce windows command, Thomas Renninger, 2013/02/11
- Re: [screen-devel] Extend windows command, introduce Xx string escape, Amadeusz Sławiński, 2013/02/13
- Re: [screen-devel] Extend windows command, introduce Xx string escape, Thomas Renninger, 2013/02/14
- Re: [screen-devel] Extend windows command, introduce Xx string escape, Amadeusz Sławiński, 2013/02/14
- Re: [screen-devel] Extend windows command, introduce Xx string escape, Thomas Renninger, 2013/02/22
- Re: [screen-devel] Extend windows command, introduce Xx string escape, Amadeusz Sławiński, 2013/02/23
- Re: [screen-devel] Extend windows command, introduce Xx string escape, Axel Beckert, 2013/02/23
- Re: [screen-devel] Extend windows command, introduce Xx string escape, Amadeusz Sławiński, 2013/02/23