Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!modus!gear!am!alex From: alex@am.sublink.org (Alex Martelli) Newsgroups: comp.unix.questions Subject: Re: Type-ahead in unix Message-ID: <1991Apr15.220135.391@am.sublink.org> Date: 15 Apr 91 22:01:35 GMT References: <7297@utacfd.UUCP> <659@adpplz.UUCP> <15686@smoke.brl.mil> <659@rufus.UUCP> <11909@dog.ee.lbl.gov> Organization: Premiata Famiglia Martelli & Figli Lines: 34 torek@elf.ee.lbl.gov (Chris Torek) writes: ... :True ... but deferred echo is not the way to do this. Deferred echo :is even more broken than immediate echo. The *only* right thing is :immediate-echo-unless-it-would-not-be-echoed-when-read followed by :drag-user-echo-along-in-front-of-output. That is, if you type ... :Now, if I had a GNOT, I would get `sliding echo-ahead' `for free', :which solves most of the problem---password typeahead is very rare and :`do not echo if future events would cause this not to be echoed' is an :unreasonable demand. Or I could use Emacs, which almost gets it right An IBM 3270 under VM/CMS almost "gets it right", too, most of the time: the bottom two lines are used as an 'input pad' where you can (locally, in the terminal/controller) edit one logical-line worth of "future input" (with echo) - however, when you "Enter" this input, it goes to the system, which 'stacks' it (without re-echoing it until it is asked for - and the application can choose to explicitly 'flush' and reject typed-ahead lines). The editing capability of the terminal and controller is really too limited, one line is far too little, etc, but I believe the "separate input pad" approach was later adopted and generalized in Apollo workstations. I wouldn't mind, for many apps, a variation of xterm that would give me a separate "input preparation" text-editing widget (I know, I know, I can almost fake it with xclipboard or whatever, and using selections, but...). Yup, I know, GNOTs are far more elegant, but I surmise there are more Apollos, X servers, and 3270s around (probably in increasing order of abundance?) than GNOTs... -- Alex Martelli - (home snailmail:) v. Barontini 27, 40138 Bologna, ITALIA Email: (work:) martelli@cadlab.sublink.org, (home:) alex@am.sublink.org Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; Fax: ++39 (51) 366964 (work only), Fidonet: 332/401.3 (home only).