X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com Subject: Screen 4.0.2 for cygwin Message-Id: <20060907083046.48659141C691@u53026a.matapp.unimib.it> Date: Thu, 7 Sep 2006 10:30:46 +0200 (CEST) From: grenie AT matapp DOT unimib DOT it (Loic Grenie) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com If anybody is interested, screen-4.0.2 compiles without too much trouble. Get the source from four favorite gnu mirror, apply the followin short patch and screen is yours. screen is a wonderful program that allows you to have several terminals inside one text terminal. Only one is visible at a time, and you can switch from one to the other with two-keys combinations, copy and paste, do some input and output processing, and a lot more. What makes it so much more interesting is that you can detach screen from the running session, logout, come back later, relogin and reattach the session. The running programs will not have noticed anything (in addition you can see the virtual terminals on several distinct physical terminals, which is useful if you have something running at home and want to see it from work). Etc, etc... This is a kind of window manager+vnc for text applications. Good luck, Loïc Grenié Patch: diff -r -c screen-4.0.2/configure screen-4.0.2-new/configure *** screen-4.0.2/configure Fri Dec 5 14:46:53 2003 --- screen-4.0.2-new/configure Thu Sep 7 09:06:15 2006 *************** *** 4260,4265 **** --- 4260,4266 ---- echo "- your fifos are not usable" 1>&6 fi + killall conftest rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f /tmp/conftest* diff -r -c screen-4.0.2/misc.c screen-4.0.2-new/misc.c *** screen-4.0.2/misc.c Fri Dec 5 14:45:41 2003 --- screen-4.0.2-new/misc.c Thu Sep 7 09:10:54 2006 *************** *** 613,619 **** */ # endif /* NEEDSETENV */ #else /* USESETENV */ ! # if defined(linux) || defined(__convex__) || (BSD >= 199103) setenv(var, value, 1); # else setenv(var, value); --- 613,619 ---- */ # endif /* NEEDSETENV */ #else /* USESETENV */ ! # if defined(__CYGWIN__) || defined(linux) || defined(__convex__) || (BSD >= 199103) setenv(var, value, 1); # else setenv(var, value); diff -r -c screen-4.0.2/pty.c screen-4.0.2-new/pty.c *** screen-4.0.2/pty.c Mon Sep 8 16:26:18 2003 --- screen-4.0.2-new/pty.c Thu Sep 7 09:13:32 2006 *************** *** 34,40 **** #endif /* for solaris 2.1, Unixware (SVR4.2) and possibly others */ ! #ifdef HAVE_SVR4_PTYS # include #endif --- 34,40 ---- #endif /* for solaris 2.1, Unixware (SVR4.2) and possibly others */ ! #if defined(HAVE_SVR4_PTYS) && !defined(__CYGWIN__) # include #endif diff -r -c screen-4.0.2/utmp.c screen-4.0.2-new/utmp.c *** screen-4.0.2/utmp.c Mon Sep 8 16:27:17 2003 --- screen-4.0.2-new/utmp.c Thu Sep 7 09:12:17 2006 *************** *** 589,595 **** struct utmp *u; { u->ut_type = DEAD_PROCESS; ! #if !defined(linux) || defined(EMPTY) u->ut_exit.e_termination = 0; u->ut_exit.e_exit = 0; #endif --- 589,595 ---- struct utmp *u; { u->ut_type = DEAD_PROCESS; ! #if (!defined(__CYGWIN__) && !defined(linux)) || defined(EMPTY) u->ut_exit.e_termination = 0; u->ut_exit.e_exit = 0; #endif -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/