home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / misc / 3065 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.5 KB

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.unix.misc
  4. Subject: Re: curses *sigh* Sparc, SunOS 4.1.1
  5. Message-ID: <13834@auspex-gw.auspex.com>
  6. Date: 30 Jul 92 21:28:40 GMT
  7. References: <eble.712503602@fidji>
  8. Sender: news@auspex-gw.auspex.com
  9. Organization: Auspex Systems, Santa Clara
  10. Lines: 25
  11. Nntp-Posting-Host: bootme.auspex.com
  12.  
  13. >Since we wanted to use curses, we tried... and failed. The manpage
  14. >says that in curses.h are the defines for ACS_HLINE and ACS_VLINE,
  15. >but there really aren't any of that defines.
  16. >
  17. >Any help?
  18.  
  19. Yup.  Try using the right version of "curses". :-)
  20.  
  21. SunOS 4.x has both the BSD and the SV (SVR3.1, to be specific) "curses".
  22. This occasionally causes some confusion, as the SV "curses" has a lot
  23. more stuff in it than the BSD "curses", and people may try doing things
  24. that expect the SV "curses" stuff, but not realize that they have to
  25. build with the SV "curses" to get that stuff.
  26.  
  27. If you compile with "/usr/5bin/cc", rather than "/usr/bin/cc" - or if
  28. you compile with some other C compiler, and use "-I/usr/5include" and
  29. "-L/usr/5lib" flags - you should get the SV "curses".  You should also
  30. get other SV-compatibility stuff, so if you're expecting BSDish
  31. semantics for calls, don't.
  32.  
  33. Unfortunately, it appears somebody at Sun screwed up, because in both a
  34. SunOS 4.0.3 machine here and a SunOS 4.1.1 machine here, there aren't
  35. both BSD and SV "curses" *man pages*; that probably contributes quite a
  36. bit to the confusion, as if you do "man curses", or even "man 3x
  37. curses", you get the SV "curses" man page.
  38.