home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.22 / text0044.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  43 lines

  1. Submitted-by: sef@kithrup.COM (Sean Eric Fagan)
  2.  
  3. In article <16290@cs.utexas.edu> thorinn@diku.dk (Lars Henrik Mathiesen) writes:
  4. >By the way, I will hazard a guess: Most, if not all, of the UNIX
  5. >variants where the existing practice of Emacs doesn't work will have
  6. >SYSV termios ioctls. 
  7.  
  8. Yep.  All POSIX systems.
  9.  
  10. >So instead of putting in ifdefs for two or three
  11. >subtly incompatible new TIOCSENDSIGs, we might as well put in the four
  12. >lines to get a termios structure and stuff the appropriate character
  13. >down the master pty.
  14.  
  15. (shell)
  16. <stuff>
  17. kithrup 341> stty intr ^Y
  18. kithrup 342> <C-cC-c>^?<C-cC-c>^?<C-cC-c>^?<C-cC-c>^?
  19.  
  20. Gosh.  It doesn't seem to be sending the control-y to the slave side of the
  21. pty!  And, gosh, if it tries to do a TCGETAW, it just hangs!  (Actually, I
  22. think it gets a SIGTTIN.)
  23.  
  24. Some of this is SCO specific.  But without rewriting the pty driver, *any*
  25. POSIX system with ptys is going to have the same problem (since sco's pty
  26. drivers aren't that different from berkeley's).
  27.  
  28. According to email I exchanged with someone at CSRG, 4.4 will support the
  29. old method, but as an obsolescent feature.
  30.  
  31. If the text is so ambiguous that it is implemented differently on every
  32. system, that means that you will need more ifdef's than with just the
  33. TIOCSIG ioctl.
  34.  
  35. -- 
  36. Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
  37. sef@kithrup.COM  |  I had a bellyache at the time."
  38. -----------------+           -- The Turtle (Stephen King, _It_)
  39. Any opinions expressed are my own, and generally unpopular with others.
  40.  
  41. Volume-Number: Volume 22, Number 46
  42.  
  43.