Re: [U2] Clearing a portion of a screen

2007-08-29 Thread Ray Wurlod
The short answer is that I measure expensive by the fact that every call to an @() function in UniVerse must be resolved by recourse to interrogating a terminfo database. Why do this unnecessarily? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit

RE: [U2] Clearing a portion of a screen

2007-08-29 Thread Stevenson, Charles
The even shorter answer is: NEVER repeatedly do ANYTHING inside a loop that will remain constant for each iteration and could be resolved outside a loop. That's language-, platform-, hardware-independent. Shoot, it's applicable to life in general. Try it in your love life: During

Re: [U2] Clearing a portion of a screen

2007-08-29 Thread Susan Lynch
Tim, Bravo! Well said! Susan Lynch F.W. Davison Company, Inc. - Original Message - From: Timothy Snyder [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Sent: Wednesday, August 29, 2007 10:43 AM Subject: Re: [U2] Clearing a portion of a screen So today, how do you measure

RE: [U2] Clearing a portion of a screen

2007-08-28 Thread Brutzman, Bill
Try the command space(Width) per the following. -Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Joseph Ruiz Sent: Tuesday, August 28, 2007 4:42 PM To: u2-users@listserver.u2ug.org Subject: [U2] Clearing a portion of a screen I know this is an

RE: [U2] Clearing a portion of a screen

2007-08-28 Thread u2
It depends on what kind of terminal you're using. If you're using a terminal emulator like Accuterm, there are command to set and clear an arbitrary block on the screen. If you're using a vt100-type terminal or emulator, you can set a scrolling region and then clear the region (by scrolling it).

Re: [U2] Clearing a portion of a screen

2007-08-28 Thread Ray Wurlod
Close, but the first column on the screen is #0. Your approach clears to the end of the line for each row processed. You can also use @(-3), which clears from current cursor position to end of screen. Tip: the @() function is quite expensive to evaluate - evaluate it once (outside the loop)

Re: [U2] Clearing a portion of a screen

2007-08-28 Thread MAJ Programming
? Respectfully, Mark Johnson - Original Message - From: Ray Wurlod [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Sent: Tuesday, August 28, 2007 6:19 PM Subject: Re: [U2] Clearing a portion of a screen Close, but the first column on the screen is #0. Your approach clears to the end of the line