Path: utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!yale!husc6!hscfvax!rind From: rind@hscfvax.uucp (747707@d.rind) Newsgroups: comp.lang.pascal Subject: Re: window() problems in turbo 5.5 Message-ID: <4248@husc6.harvard.edu> Date: 24 Sep 90 14:47:18 GMT References: <15445.26f8cfbb@levels.sait.edu.au> Sender: news@husc6.harvard.edu Organization: Health Sciences Computing Facility, Harvard University Lines: 20 In article <15445.26f8cfbb@levels.sait.edu.au> xanuttall@levels.sait.edu.au writes: >I have noticed using Turbo Pascal 5.5 that when you use the crt >procedure window to to change the screen borders, when you select a >region only 1 line high, it spits the dummy and scrolls the rest of the >screen. I can find no mention of it in the manual. >for loop := 0 to 3999 do >mem[$b000:loop] := random(255); { $b800 for colour screens } >window(1,1,50,1); >writeln('Hi there'); I'm not sure what you mean by "spits the dummy", but if I understand what this program is intended to do I think your problem is that you are using Writeln instead of Write. Writeln is necessarily causing a line feed at the end of your output line, and if you are directing that output into a one line high window the line feed scrolls the window and moves your line of text out. Try substituting the line: Write('Hi there'); for your line. But perhpaps I'm misunderstanding your question. David Rind rind@hscfvax.harvard.edu