home *** CD-ROM | disk | FTP | other *** search
- From: darrylo@hpnmdla.sr.hp.com (Darryl Okahata)
- Date: Tue, 8 Sep 1992 21:07:09 GMT
- Subject: Re: Problems with Spice on HP Workstations
- Message-ID: <430138@hpnmdla.sr.hp.com>
- Organization: Hewlett-Packard, Santa Rosa, CA
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hpscdc!scd.hp.com!hplextra!hpl-opus!hpnmdla!darrylo
- Newsgroups: comp.sys.hp
- References: <1992Sep5.021934.22239@news.Hawaii.Edu>
- Lines: 51
-
- In comp.sys.hp, warren@wiliki.eng.hawaii.edu (Warren Yamauchi) writes:
-
- > We have compiled Spice3e2 on our HP 9000 Series 400 workstations. Spice
- > compiles with no errors and runs fine when not used with X windows. When
- > used with X windows, two carriage returns are needed before Spice
- > starts processing a command. Has anyone experienced this problem?
- > The HP workstations are runing HPUX 8.0 and X11R4.
-
- It's a bug in Spice3e2. The problem is that X11 Spice3e2 is using
- select(2) with BUFFERED input routines. Here's a quickie patch for
- spice3e2/src/lib/cp/lexical.c:
-
- -------------------------------------------------------------------------------
- *** /tmp/,RCSt1a28949 Tue Sep 8 14:05:39 1992
- --- lexical.c Thu Aug 27 11:53:54 1992
- ***************
- *** 313,319
- char c;
- int i;
-
- ! #ifdef TIOCSTI
- if (cp_interactive && !cp_nocc) {
- do {
- i = read((int) fileno(fp), &c, 1);
-
- --- 313,319 -----
- char c;
- int i;
-
- ! #if defined(TIOCSTI) || defined(__hpux)
- if (cp_interactive && !cp_nocc) {
- do {
- i = read((int) fileno(fp), &c, 1);
- -------------------------------------------------------------------------------
-
- I think that this is all you need.
-
- -- Darryl Okahata
- Internet: darrylo@sr.hp.com
-
- DISCLAIMER (unoriginal): This message is the author's personal opinion
- and does not constitute the support, opinion or policy of
- Hewlett-Packard. Any resemblance between the above views and those of
- the author's employer, his terminal, or the view out his window are
- purely coincidental. Any resemblance between the above and his own
- views is non-deterministic. The question of the existence of views in
- the absence of anyone to hold them is left as an exercise for the
- reader. The question of the existence of the reader is left as an
- exercise for the second god coefficient. (A discussion of
- non-orthogonal, non-integral polytheism is beyond the scope of this
- article.)
-