home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / aix / 8279 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.3 KB  |  40 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!gumby!destroyer!ubc-cs!news.UVic.CA!news.uvic.ca!mberkley
  3. From: mberkley@visions.uvic.ca (Mike  Berkley)
  4. Subject: Equivalent of BSD Cbreak mode in POSIX line discipline?
  5. Message-ID: <MBERKLEY.92Jul28141749@visions.uvic.ca>
  6. Lines: 27
  7. Sender: news@sol.UVic.CA
  8. Nntp-Posting-Host: visions.uvic.ca
  9. Reply-To: mberkley@sirius.uvic.ca (J. Michael Berkley)
  10. Organization: University of Victoria
  11. Date: 28 Jul 92 14:17:49
  12.  
  13. Does anybody know what the equivalent of BSD cbreak mode is when using
  14. POSIX line discipline?
  15.  
  16. We have a set of old Fortran routines that try to read a character at
  17. a time from the terminal for user interaction.  Under AIX 3.1.5, we
  18. used (this is simplified):
  19.  
  20.     stty disp bsd
  21.     stty cbreak -echo
  22.     fortstuff
  23.  
  24. Under AIX 3.2, the BSD line discipline seems to be broken (we either
  25. don't get a character, or we start losing line feeds, etc.  Since it
  26. will take time for IBM to fix BSD line discipline, we would like to
  27. know if there is a way to get cbreak behaviour out of POSIX line
  28. discipline.
  29.  
  30. I have tried -icanon, but it doesn't seem to persist, that is -icanon
  31. applies to the shell in which "stty -icanon min..." is invoked, but
  32. has no effect on the Fortran program.
  33.  
  34. Thanks
  35.  
  36.  
  37. Mike Berkley
  38. Barrodale Computing Services
  39. mberkley@visions.UVic.CA
  40.