[comp.emacs] Curiouser and curiouser

Dave Lawrence (12/30/88)

More from the home front ... I'm working on a mode that interfaces with
a communication programme here.  The programme in question will send 
output to the user even when he is still typing input;  I'd like to
retain this functionality.  For those of you familiar with conf, the 
programme is much like that but runs slightly more real-time.  (Conf
pauses whenever the user has typed something on a line but hasn't 
sent an eol.)  
 
The problem that I have right now is that if new output arrives, whatever
has been typed so far is no longer on the string to be sent.  For example,
say that `/who' gives me a listing of the current users and that *** surrounds
a programme message.  The following sample would end up giving me an error
("You have no default sendlist." -- but that takes more explaining.) rather
than the desired list:
 
/wh*** It is now 02:30 ***
o

This happens because all the remote programme received was the o and not the
/wh that I typed preceding it.
 
So any ideas about how I can get all the characters always on the bottom line,
no matter what comes in?  That's the "ultimate" way to do it ... not only have
the entire `/who' get passed to the programme, but have it redisplayed on the
last line whenever new input comes in (but only until a newline telnet-send=
input is received).  I'm certain Emacs sees the output in some form
or else it couldn't place it in the buffer.  I would think that all I need
to do is preserve the current input string before writing the new output
and then simply rewrite the string.  I'm just not sure where's it going on.
Help, please?
 
Thanks again ... the help is appreciated.
 
Dave
--
      tale@rpitsmts.bitnet, tale%mts@rpitsgw.rpi.edu, tale@pawl.rpi.edu