Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!nrl-cmf!ukma!uflorida!beach.cis.ufl.edu!jdc From: jdc@beach.cis.ufl.edu (Jeff Capehart) Newsgroups: comp.os.vms Subject: Re: CLOCK PROGRAM (FORTRAN) Message-ID: <14098@uflorida.cis.ufl.EDU> Date: 4 Apr 88 04:48:14 GMT References: <8804031747.AA08630@ucbvax.Berkeley.EDU> Sender: news@uflorida.cis.ufl.EDU Reply-To: jdc@beach.cis.ufl.edu (Jeff Capehart) Organization: UF CIS Department Lines: 32 In article <8804031747.AA08630@ucbvax.Berkeley.EDU> writes: >Jeff, > >I am having a rather significant problem with your otherwise elegant clock >program. When I run it and enter an editor, the cursor proceeds to move >across the screen, eating all in it's path. It moves one space per >second. > >This also happens at the dcl prompt. The cursor will slowly walk it's way >across the screen, one space per second. Am I doing something wrong, or is >there a flaw that I can't see in the code? Anybody else have this problem? > >Dan CLOCK was written with VT100 in mind. I assume you are using a VT100 emulator, or terminal, or close enough. I am not sure exactly what is happening with your cursor. I am using the cursor positioning escape codes (ANSI standard) and I shouldnt be printing past column 80. Perhaps I can check and see. It would be best to stop at 79 rather than try to print in column 80. What you can do to the source code is find the text part with the 1;72 part and adjust it to maybe 1;70 until it fits correctly or where you want. The problem with the editor is more likely a reverse scrolling or scrolling region reset problem. I could put some funky things in for it to check to see (using $getjpi calls) if the main process is in EDT or TPU and then suspend the clock updates, or place them at the bottom of the screen. Anyone else have suggestion or comments on this method for handling clock in the editor? Its a small nuisance to turn it on and off just for the editor and it sure isnt pretty in there. -- Jeff Capehart Internet: jdc@beach.cis.ufl.edu University of Florida UUCP: ..!ihnp4!codas!uflorida!beach.cis.ufl.edu!jdc