As we all know that batch programming is basically Cui [character user interface] which means that you have to tell pc, what to do by typing on Keyboard And your pc gives you Response In form of characters (or sentences) On the monitor… I.e. All the exchange of data and information is in the form of Characters. Thus making a simple animation in cmd console in Cui Is the method how our these days Gui Tech.,comes From It?
For making a simple animation in Cmd and this type of programming language is pretty-much difficult, but there is always a way… As cmd does not come with the utility of changing coordinates of input cursor (I.e. We can’t say like ‘Goto xy(5,6)’ as we use in c or CPP … so we need to take a different road for our goal.
In this batch script… what I’ve done is , i had simply leave y lines empty for Y – ordinate, and filled x spaces before our animated item for X abscissa. Which gives me utility like ‘Goto xy (x,y)’ in batch .
e.g. If I have to go to the co-ordinate (5,5), then simply I will leave 4 empty lines in the console and put 4 spaces before the character to be printed (as width of character is ‘1’). So, We’ll reach to the point 5,5 Indirectly.
Trick for SIMPLE ANIMATION IN CMD
This method is only
Hence, in those cases, it is better to use external plugin instead of doing this complicated trick for your program.
Keep learning, keep sharing…Thebateam
Be happy, spread happiness…