Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!eecae!cps3xx!usenet From: usenet@cps3xx.UUCP (Usenet file owner) Newsgroups: comp.unix.questions Subject: Re: Unix deficiencies/problems (immediate character echoing) Summary: The driver can do it "right" (<== my definition of "right") Message-ID: <2930@cps3xx.UUCP> Date: 10 May 89 17:34:31 GMT References: <810038@hpsemc.HP.COM> <810046@hpsemc.HP.COM> <159@dg.dg.com> <424@algor2.UUCP> <676@dtscp1.UUCP> <1528@cmx.npac.syr.edu> <8892@csli.Stanford.EDU> <2914@cps3xx.UUCP> <8907@csli.Stanford.EDU> Reply-To: rang@cpsin3.cps.msu.edu (Anton Rang) Organization: Michigan State University, Computer Science Dept. Lines: 31 In article <8907@csli.Stanford.EDU> gandalf@csli.stanford.edu (Juergen Wagner) writes: >In article <2914@cps3xx.UUCP> rang@cpsin3.cps.msu.edu (Anton Rang) writes: >>... >> Does anyone know the original reason for the immediate echoing? >>... > >The question which has to be raised is who echoes the characters as they >are typed. Is it the driver which is in some echo mode, or is it the >application (shell, emacs, whatever)? > > [...] > >The alternative would be to require the application to echo characters just >as it reads them (this would give you the desired behaviour). Umm, to display my ignorance of UNIX device driver internals, why can't it be done like this? 1. User types character. Driver puts it in some queue. 2. Application wants character. Calls [ something ] to get it from queue. [ something ] echoes it. After all, applications don't directly grab characters; if they're going through some common point, you could do echoing there. (Right?) +---------------------------+------------------------+-------------------+ | Anton Rang (grad student) | "VMS Forever!" | VOTE on | | Michigan State University | rang@cpswh.cps.msu.edu | rec.music.newage! | +---------------------------+------------------------+-------------------+ | Send votes for/against rec.music.newage to "rang@cpswh.cps.msu.edu". | +---------------------------+------------------------+-------------------+