Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!clarkson! From: slk@clutx.clarkson.edu (Steve Knodle, ERC,,) Newsgroups: comp.unix.aix Subject: Re: That !%$@ 3-character buffer. Message-ID: <1990Nov20.215509.11484@grape.ecs.clarkson.edu> Date: 20 Nov 90 21:55:09 GMT References: <1190@cameron.egr.duke.edu> Sender: @grape.ecs.clarkson.edu Reply-To: slk@clutx.clarkson.edu Organization: Clarkson University Lines: 27 From article <1190@cameron.egr.duke.edu>, by jpe@egr.duke.edu (John P. Eisenmenger): > I'm having a problem with my RS6000 buffering input. I compiled > Berkeley's vi (along with the "new" termcap library) and everything > works fine, *except* that input is buffered by three characters. I > had seen this resolved before, but unfortunately didn't save the > posting. Could someone please post some help (direct mail will be > accepted also)? > > -John Eisenmenger jpe@cameron.egr.duke.edu > Dept. of Electrical Engineering jpe@cs.duke.edu > Duke University > Durham, NC 27707 I hit similar problem porting Microemacs3.10 (heavily used here). Termcap apparently requires tty bsd line discipline mode. So a wrapper shell script works: stty add bsd /usr/local/bin/me.bin stty del bsd and the bsd line discipline is pushed and popped from the tty driver's stack. This is not fully satisfactory since if a ptty is left in bsd mode, if the next user rlogs in, the PASSWORD ECHOS. Be warned. The login program ought to reinitialize the tty line discipline.