Patch to quiet -R "New screen..."

[email protected] Mon, 01 May 2006 10:51:44 -0400
Newsgroups gmane.comp.gnu.screen
Message-ID <[email protected]>
I was annoyed by how -R shows an unavoidable "New screen..." prompt when
creating a new session (and apparently I'm not that only one -
http://www.kuro5hin.org/comments/2004/3/9/16838/14935/64#64) so I made a
quick patch to have the -q also suppress this message.

Chris Pimlott

----

diff -Nurd screen-4.0.2.orig/screen.c screen-4.0.2/screen.c
--- screen-4.0.2.orig/screen.c  2003-09-08 10:26:41.000000000 -0400
+++ screen-4.0.2/screen.c       2006-04-19 11:52:26.000000000 -0400
@@ -1340,7 +1340,7 @@
   if (display && default_startup)
     display_copyright();
   signal(SIGINT, SigInt);
-  if (rflag && (rflag & 1) == 0)
+  if (!quietflag && rflag && (rflag & 1) == 0)
     {
       Msg(0, "New screen...");
       rflag = 0;