Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
HØLLØW

Blinking text in batch-file

Recommended Posts

jaclaz    927

yeah but the text will blink so so what jaclaz

No, the text won't "blink" THE WHOLE page will disappear (CLS) and then re-appear (ECHO) (and thus ALL the text on the page will appear to blink).

If you had actually READ the OP question it is about "managing" SINGLE lines and NOT the whole screen and he actually excluded in his post the use of CLS.

So you posted TWICE the same thing, BOTH times answering *another thing* from what was originally asked.

Check this page:

http://www.robvanderwoude.com/ansi.php

(already provided) if you scroll a bit down it you will see an example of ANSI <Esc>[5m under DOS.

jaclaz

Share this post


Link to post
Share on other sites
allen2    1

The dos blinking isn't cleaning the window and rewrite it entirely and that's what wanted the OP in recent windows and this was already clearly explained 3 years ago.

Edit: Jaclaz already answered more precisely.

Edited by allen2

Share this post


Link to post
Share on other sites
Yzöwl    30

Did anyone actually take a look at the example I provided?

it provided a method of changing text on a line without clearing the screen

Share this post


Link to post
Share on other sites
allen2    1

Indeed your code is a better approach of a replacement of the dos blinking escape code but it is still far too complex to be used easily in any script.

Share this post


Link to post
Share on other sites
Guest   
Guest

It's not terribly difficult, allen2. Of course it will only work on the last output line. And, as written, only for a limited amount of time.

Clever way to get a carriage return, BTW. ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×