From: dennison@telepath.com
Subject: Re: backing up
Date: 1998/07/23
Date: 1998-07-23T00:00:00+00:00 [thread overview]
Message-ID: <6p8cft$om0$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 35B74653.30D657F8@world-net.net
In article <35B74653.30D657F8@world-net.net>,
Rick <hicks@world-net.net> wrote:
> I want to implement some type of status indicator, showing 0-100% of
> progress. Is there a way I can back the cursor up on the same line and
> replace the output that is already there?
There is no standard way to do this, since not all command shells support
this feature (although you'd have a tough time finding one that doesn't these
days).
If your terminal supports ANSI control characters, I believe an ESC followed
by A, B, C, or D maps to the arrow keys. That might work through Text_IO on
your implementation.
Another option if you are on a Unix platform is interfacing to the curses
library. Your vendor might even supply a packge to do this for you.
However, I'm not sure why you need to back the cursor up at all. A
"Text_IO.Put ("#");Text_IO.Flush;" should do the trick.
T.E.D.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
next prev parent reply other threads:[~1998-07-23 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-07-23 0:00 backing up Rick
1998-07-23 0:00 ` Jerry van Dijk
1998-07-28 0:00 ` John McCabe
1998-07-23 0:00 ` dennison [this message]
1998-07-24 0:00 ` tedennison
1998-07-24 0:00 ` Tarjei Tj�stheim Jensen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox