home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / bsd / 3178 < prev    next >
Encoding:
Text File  |  1992-07-29  |  2.6 KB  |  56 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!news.univie.ac.at!news.tu-graz.ac.at!fstgds01!chmr
  3. From: chmr@fstgds01.tu-graz.ac.at (Christoph Robitschko)
  4. Subject: Re: 386BSD: Dinky little socket(?) bug -- ^V as escape character?
  5. Message-ID: <1992Jul30.081047.16575@news.tu-graz.ac.at>
  6. Sender: news@news.tu-graz.ac.at (USENET News System)
  7. Nntp-Posting-Host: fstgds01
  8. Organization: Technical University of Graz, Austria
  9. References: <sand.712454840@milton> <1992Jul30.011650.5292@pasteur.Berkeley.EDU>
  10. Date: Thu, 30 Jul 92 08:10:47 GMT
  11. Lines: 43
  12.  
  13. In article <1992Jul30.011650.5292@pasteur.Berkeley.EDU> sim@cory.Berkeley.EDU (Peng-Toh Sim) writes:
  14. >In article <sand.712454840@milton> sand@milton.u.washington.edu (Derek Upham) writes:
  15. [complains that he has to press ^V twice to be interpreted in a screen session]
  16. >
  17. >
  18. >I believe this bug is due to misinterpretation of POSIX.1 .
  19. >I have seen this bug under 0.0 with screen3.2 and kermit 5a.
  20. >When screen3.2 or kermit is compiled with POSIX.1 termios, it
  21. >switches to RAW mode by resetting ICANON in c_lflags for the
  22. >terminal.  This, however, does not disable IEXTEN under the
  23. >current implementation of 386bsd, so keys enabled by IEXTEN like
  24. >^V still gets processed.  Since with screen (or kermit), you go
  25. >though the tty discipline twice, ^V gets processed twice.
  26. >Example, if you want to enter ^V itself, you have to hit it four times!!!
  27. >I figure this from "POSIX Programmer's Guide" by Donald Lewine.
  28. >However, this book does not say if the kernel should ignore IEXTEN when
  29. >ICANON is not set.  So I don't know who's bug this is.
  30. >My modified version of screen3.2 and kermit disables the IEXTEN flag
  31. >when they switch to RAW mode so I don't see this problem.
  32. >
  33. >Can somebody who has access to the actual POSIX.1 document comment
  34. >on this please?
  35. >
  36. >PT
  37. >sim@cory.berkeley.edu
  38. >
  39. From "Portable Operating System Interface (POSIX) Part 1: System Application
  40. Program Interface (API) [C Language]" ("IEEE Std 1003.1 - 1990"), Chapter
  41. 7.1.2.4:
  42.  
  43. # If IEXTEN is set,implementation-defined functions shall be recognized from the
  44. # input data. It is implementation defined how IEXTEN being set interacts with
  45. # ICANON, ISIG, IXON, or IXOFF. If IEXTEN is not set, then implementation-
  46. # defined functions shall not be recognized, and the corresponding input
  47. # characters shall be processed as described for ICANON, ISIG, IXON, or IXOFF.
  48.  
  49. Typing errors are my own intellectual property 8->
  50.  
  51.                             Christoph
  52. -- 
  53. ------------------------------------------------------------------------
  54. Christoph M. Robitschko  | "the only man who got his work done by Friday
  55. chmr@edvz.tu-graz.ac.at  |             was Robinson Crusoe."
  56.