[comp.unix.questions] Unpolite daemons

car@trux.UUCP (Chris Rende) (10/12/90)

[ System V Release 2 ]

I use the "-w" option to LP(1) to submit print requests so that I know when
they finish.

The trouble is, if I'm in the middle of typing a command line when the message
from "lp:" comes to my screen, what I was typing is lost!

I suspect that LPSCHED is doing IOCTL()'s to my tty in addition to WRITE()ing
the message. These IOCTL()'s probably have the effect of flushing the
input buffer. I haven't noticed this unpolite behaviour with programs such
WRITE(1).

Can anything be done to keep the input buffer from being flushed?
(Smart replies like "well, don't use -w with LP" are not welcome :-).

Ahhhhhh Multics:
Multics has a tty mode "polite" which would block/buffer output to the tty 
if you were in the middle of typing a command. After you press return, any
pending output would be displayed on the tty.

Multics has another mode "replay" which would allow output to the tty
while you are in the middle of typing a command. However, after interrupting
you with the output it would "replay" the conents of the input buffer to
your screen so that you could see where you were and continue on as if
nothing had happened.

car.
-- 
Christopher A. Rende           Central Cartage (Nixdorf/Pyramid/SysVR2/BSD4.3)
uunet!edsews!rphroy!trux!car   Multics,DTSS,Unix,Shortwave,Scanners,UnixPC/3B1
trux!car@uunet.uu.net          Minix 1.2,PC/XT,Mac+,TRS-80 Model I,1802 ELF
trux!ramecs!car     "I don't ever remember forgetting anything." - Chris Rende

mpd@anomaly.sbs.com (Michael P. Deignan) (10/13/90)

car@trux.UUCP (Chris Rende) writes:

>Subject: Re: Unpolite daemons

And here I thought this thread was going to be about daemons which
monitor various system statistics and then send messages like:

"Hey You! Yeah, You! Wake Up! Will you enter a command or something?
Your shell doesn't have ALL DAY you know!"

to users (who, in that case, have been idle at their shell prompt too long,)
or:

"Hey Wiz... Do you normally take all day to read one newsgroup, or are
you just normally slow?"

--
MD
-- 
-- Michael P. Deignan, President     -- Small Business Systems, Inc. --
-- Domain: mpd@anomaly.sbs.com       -- Box 17220, Esmond, RI 02917  --
-- UUCP: ...uunet!rayssd!anomaly!mpd -- Telebit:  +1 401 455 0347    --
-- XENIX Archives: login: xxcp, password: xenix  Index: ~/SOFTLIST   --