home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / sysv386 / 16691 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.0 KB

  1. Xref: sparky comp.unix.sysv386:16691 comp.unix.sys5.r4:576
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!caen!destroyer!ncar!noao!arizona!ric
  3. From: ric@cs.arizona.edu (Ric Anderson)
  4. Newsgroups: comp.unix.sysv386,comp.unix.sys5.r4
  5. Subject: SUMMARY: Making stty werase work in a user program.
  6. Keywords: WERASE, RPRNT
  7. Message-ID: <26902@optima.cs.arizona.edu>
  8. Date: 22 Nov 92 06:32:42 GMT
  9. Followup-To: /dev/null
  10. Organization: U of Arizona CS Dept, Tucson
  11. Lines: 35
  12.  
  13. In article 28831, I wrote:
  14. - On two different SVR4's I use (ESIX and DELL), the stty word erase
  15. - character (werase, default is Control-W) and the stty reprint line
  16. - character (rprnt, default is Control-R) (described in termio(7) as
  17. - well as in stty(1)) are not processed when a simple program using
  18. - ordinary "fgets()" calls is run.
  19. [stuff deleted]
  20. - Does anyone know what settings will make werase and rprnt function
  21. - as advertised in programs other than ksh?
  22. The correct answer came from:
  23.     guy@auspex.com (Guy Harris)
  24. who said in part:
  25. - From the SunOS 4.1.1 TERMIO(4) manual page (I think the SVR4 "ldterm"
  26. - "tty driver" STREAMS module is derived from the SunOS 4.1[.x] one):
  27. -      If IEXTEN is added to the local modes (this is the default),
  28. -      then all of the special characters are in effect.  If IEXTEN
  29. -      is cleared from the local modes,  then  only  the  following
  30. -      POSIX.1  compatible  specials  are  seen  as specials: INTR,
  31. -      QUIT, ERASE, KILL, EOF, NL, EOL, SUSP, STOP, START, and CR.
  32. - So, unless IEXTEN is set, none of the control characters not mentioned
  33. - in POSIX 1003.1 work; neither "word erase" nor "reprint" are mentioned
  34. - there.  (The idea is that any program that wants to make absolutely,
  35. - positively, sure that the tty driver isn't intercepting any characters
  36. - not mentioned in 1003.1, so that it doesn't get surprised by control-R,
  37. - say, not getting through the tty driver to it, would turn IEXTEN off.)
  38.     stty iexten
  39. under DELL SVR4 did indeed do the trick. 
  40.  
  41. Ric (<ric@cs.arizona.edu> "Ric Anderson", speaking for himself)
  42.