[comp.windows.x] Xterm for Convex's

rich@ndcvb.cc.nd.edu (Rich Sudlow) (03/12/90)

Has anyone been able to obtain the diffs needed for running an Xterm
from a Convex and get job control. I know that Convex sells a product
called CXwindows which does it right but they want $$ for it and it's
an old R3 version. Thanks.

Rich Sudlow
rich@samson.cc.nd.edu

iglesias@orion.oac.uci.edu (Mike Iglesias) (03/15/90)

In article <89@ndcvb.cc.nd.edu> rich@ndcvb.cc.nd.edu (Rich Sudlow) writes:
>Has anyone been able to obtain the diffs needed for running an Xterm
>from a Convex and get job control. I know that Convex sells a product
>called CXwindows which does it right but they want $$ for it and it's
>an old R3 version. Thanks.
>
>Rich Sudlow
>rich@samson.cc.nd.edu

R3 xterm worked ok under ConvexOS v7.1 for us, but job control broke
under ConvexOS v8.0.  Included below are the changes we made to
xterm/main.c to make it work.  We have not tried making R4 work on
our Convex yet - no one's had the time to tackle it.


Mike Iglesias
University of California, Irvine
iglesias@orion.oac.uci.edu


*** main.c~	Wed Mar  8 14:08:45 1989
--- main.c	Wed Mar 14 10:29:34 1990
***************
*** 134,140 ****
--- 134,142 ----
  extern char *realloc();
  extern char *ttyname();
  extern void exit();
+ #ifndef convex
  extern void sleep();
+ #endif
  extern void Bcopy();
  extern void vhangup();
  extern long lseek();
***************
*** 871,877 ****
--- 873,883 ----
  		fileno(stderr) = i;
  		(unsigned char *) _bufend(stderr) = old_bufend;
  #else	/* USE_SYSV_TERMIO */
+ #ifndef convex
  		fileno(stderr) = i;
+ #else
+ 		(stderr)->_file = i;
+ #endif /* convex */
  #endif	/* USE_SYSV_TERMIO */
  
  		/* mark this file as close on exec */
***************
*** 1350,1356 ****
--- 1356,1366 ----
  		 * now in child process
  		 */
  		extern char **environ;
+ #ifndef convex
  		int pgrp = getpid();
+ #else
+ 		int pgrp = setsid();
+ #endif
  #ifdef USE_SYSV_TERMIO
  		char numbuf[12];
  #endif	/* USE_SYSV_TERMIO */