Xref: utzoo comp.unix.programmer:1731 comp.unix.questions:30977 comp.unix.wizards:25352 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!bcm!lib!thesis1.med.uth.tmc.edu From: dfenyes@thesis1.med.uth.tmc.edu (David Fenyes) Newsgroups: comp.unix.programmer,comp.unix.questions,comp.unix.wizards Subject: Losing pending input in entering RAW or CBREAK Keywords: cbreak raw type-ahead Message-ID: <5027@lib.tmc.edu> Date: 2 May 91 23:40:20 GMT Sender: usenet@lib.tmc.edu Followup-To: comp.unix.programmer Distribution: usa Organization: University of Texas Medical School at Houston Lines: 17 Nntp-Posting-Host: thesis1.med.uth.tmc.edu Hello, I have an application that enters CBREAK mode (to do editing). When I switch from cooked to CBREAK, any pending input appears to be discarded. How can this be avoided or worked around? The exception is if a is hit before entering CBREAK--then the whole line is properly read in CREAK mode. I'm using Coherent. Is this an anomaly, or standard tty behavior? Is there any way to retrieve those chars not sent by in cooked mode? Thanks in advance, David Fenyes dfenyes@thesis1.med.uth.tmc.edu University of Texas Medical School Houston, Texas