Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!lll-winken!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond!diamond From: diamond@diamond.csl.sony.junet (Norman Diamond) Newsgroups: comp.lang.modula2 Subject: Re: beginner's stupid question Message-ID: <10265@socslgw.csl.sony.JUNET> Date: 20 May 89 05:38:00 GMT References: <8905180953.AA13531@jade.berkeley.edu> Sender: news@csl.sony.JUNET Reply-To: diamond@csl.sony.junet (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 44 From: CBWP8008@IRUCCVAX.UCC.IE (Ian Murphy) >> I don't think it's provided in standard modula, not to matter, what you have >> to >> do is to write an esc sequence (i.e something) the something will depend >> on the terminal type you're using. I'd guess you're using vt100s so the best In article <8905180953.AA13531@jade.berkeley.edu> Modula2 List writes: >Ian, We use modula-2 here in Trinity and we too tried to find a way to clear > the screen and return the cursor to the top of the >screen. It apparently cannot be done. We use VT320 terminals and went to the > comp. lab. to get the manuels for the terminals. >Having got them we frantically searched through it to find some sort of escape > sequence or ascii character to do it. >The result is that it cannot be done!!! You have to put the cursor at the top of the screen and then clear the screen. The reason is that the VT100's "clear" function only operates from the current cursor position to the end of the screen. The escape codes are something like the following: [ 0 ; 0 H [ 2 J >However if you use VMS on a Vax then typing the following will do it for you... > $ SET TERM/WIDTH=132 > $ SET TERM/WIDTH=80 If you want to do it that way, there are escape codes for this too. But beware, some future generations of DEC terminals might not lose their memory during such operations. Meanwhile, it looks like you posted your news article with your terminal set to 132, and some processor split them at 80. I edited the excerpts quoted above, to make them more readable. Most of us use width-80 windows (or width-80 whatevers) to read news. Please use it when posting, too. -- Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.co.jp@relay.cs.net) The above opinions are my own. | Why are programmers criticized for If they're also your opinions, | re-implementing the wheel, when car you're infringing my copyright. | manufacturers are praised for it?