🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38077

Re: Xterm for Convex's

#38077
From: Mike Iglesias
Date: Wed, 14 Mar 1990 18:37
62 lines
2102 bytes
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 */
Technical Details
Message-ID: <25FE8F5B.6355@orion.oac.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!salt.acc.com!ucsd!orion.oac.uci.edu!iglesias
References: <89@ndcvb.cc.nd.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!salt.acc.com!ucsd!orion.oac.uci.edu!iglesias
From: iglesias@orion.oac.uci.edu (Mike Iglesias)
Newsgroups: comp.windows.x
Subject: Re: Xterm for Convex's
Keywords: Xterm Convex
Message-ID: <25FE8F5B.6355@orion.oac.uci.edu>
Date: 14 Mar 90 18:37:15 GMT
References: <89@ndcvb.cc.nd.edu>
Reply-To: iglesias@orion.oac.uci.edu (Mike Iglesias)
Organization: University of California, Irvine
Lines: 62