Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!think!mintaka!bloom-beacon!mcgill-vision!mcgill-vision!mouse From: mouse@mcgill-vision.uucp (der Mouse) Newsgroups: comp.unix.wizards Subject: TIOCSTI t_lnextc: safe? Message-ID: <1989Dec21.152731.3074@larry.mcrcim.mcgill.edu> Date: 21 Dec 89 15:27:31 GMT Sender: news@larry.mcrcim.mcgill.edu (Usenet File Owner) Organization: McGill University, McRCIM Lines: 19 I have a program that sometimes wants to use TIOCSTI to stuff back the literal-next character, to quote the next character the user types. This works fine on real BSD. However, when I try the same program on Suns, it sometimes works (release 3.5) and sometimes doesn't (release 4.0.3). When it fails, the TIOCSTI results in the literal-next character itself being read, rather than the next character the user types. (As if the lnextc quoted itself when TIOCSTIed.) What I want to know is, am I wrong in expecting this to work? In other words, is the misbehavior under Sun release 4.0.3 a Sun bug or me expecting too much? (If anyone knows of a simple fix, I'd love to hear about it.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu