Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!tank!dwayne@rover.bsd.uchicago.edu From: dwayne@rover.bsd.uchicago.edu Newsgroups: comp.lang.pascal Subject: Re: VAX Pascal question Message-ID: <3921@tank.uchicago.edu> Date: 19 Jun 89 14:14:19 GMT Sender: news@tank.uchicago.edu Organization: University of Chicago - Dept. Rad. Onc. and Med. Physics Lines: 14 In article <711@soleil.UUCP>, eam@soleil.UUCP (Ed A. Mills) writes... >Has anyone figured out a way to flush the lazy-lookahead buffer in VAX_Pascal >without doing a read or writeln? I've tried system services, and even gone >so far as to write a C routine using flush, none of which had any success. If I understand the question, are you talking about those strange times when pascal sometimes sees a terminator and skips past your readln? If so, then you can do a reset(input) before the call, thus moving the type-ahead buffer pointer to the front of the buffer. If you are using smg calls then you can use trm$m_tm_purge for the modifiers field or if you are doing sysqios then io$m_purge should do it too. Dwayne Spradlin dwayne@rover.uchicago.edu