Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpcc01!hpbbn!hpwad!ffritze From: ffritze@hpwad.HP.COM (#Fromut Fritze) Newsgroups: comp.lang.pascal Subject: Re: How Can I empty COM1 port in TP? Message-ID: <2290009@hpwad.HP.COM> Date: 4 Sep 90 07:09:51 GMT References: <34499@unix.cis.pitt.edu> Organization: Hewlett-Packard Waldbronn, Germany Lines: 18 > The title says it all. .... I'm not sure - at least not to me > How can I tell how many characters are there in COM1? It's a serial port. Once you read one byte, another byte might appear form your source. Unless you use any measn of handshake to stop the sender from drowning you in bytes, you have to be fast in reading / processing. Depending on your sender, any number of bytes may appear or get lost at COM1. ------------------------------------------------------------------------------ internet: ffritze@hpwadrd.hp.com hpdesk: Fromut FRITZE / HPB400 / R1 phone: Germany 7243 602296 address: Fromut FRITZE, Waldbronn Analytic Division R&D, Hewlett Packard Str, D 7517 Waldbronn 2, Germany ------------------------------------------------------------------------------