From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,df157bda371e7890 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: backing up Date: 1998/07/23 Message-ID: <6p8cft$om0$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 374255308 References: <35B74653.30D657F8@world-net.net> Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Jul 23 22:12:13 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows NT; Gateway2000) Date: 1998-07-23T00:00:00+00:00 List-Id: In article <35B74653.30D657F8@world-net.net>, Rick 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