diff options
author | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2010-03-14 23:02:37 -0400 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2010-03-14 23:02:37 -0400 |
commit | 8a6abbab0161e6df1cea2ae0033a4c7f4a47f8e9 (patch) | |
tree | abc8b7b1047c75884666c3b26bb1e42686d3fdb2 /src/process.c | |
parent | 6e67aee852c60c8b8a67981233ed29ca48ff8506 (diff) | |
download | screen-8a6abbab0161e6df1cea2ae0033a4c7f4a47f8e9.tar.gz |
Add special rendition for silence'd windows.
The default rendition for silence'd windows in caption/hardstatus
or in the windowlist is =u (underline). Closes savannah bug #29205.
Diffstat (limited to 'src/process.c')
-rw-r--r-- | src/process.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index d685501..cb90802 100644 --- a/src/process.c +++ b/src/process.c @@ -3894,6 +3894,10 @@ int key; { i = REND_MONITOR; } + else if (strcmp(args[0], "silence") == 0) + { + i = REND_SILENCE; + } else if (strcmp(args[0], "so") != 0) { Msg(0, "Invalid option '%s' for rendition", args[0]); @@ -5357,6 +5361,8 @@ int where; rend = renditions[REND_MONITOR]; else if ((p->w_bell == BELL_DONE || p->w_bell == BELL_FOUND) && renditions[REND_BELL] != -1) rend = renditions[REND_BELL]; + else if ((p->w_silence == SILENCE_FOUND || p->w_silence == SILENCE_DONE) && renditions[REND_SILENCE] != -1) + rend = renditions[REND_SILENCE]; } if (rend != -1) AddWinMsgRend(s, rend); |