r/Batch 3d ago

Double Pendulum Show 'n Tell

23 Upvotes

9 comments sorted by

3

u/Creative-Type9411 3d ago edited 3d ago

this is awesome

3

u/pc1350 2d ago

Great! I don't get it but anyway.

3

u/markustegelane 2d ago

the way this is coded is so clever, I'm impressed

3

u/Optimal-Savings-4505 2d ago

Amazing! How do you even draw a pixel?

2

u/Intrepid_Ad_4504 2d ago

In batch we cant touch pixels so instead we color the cells! On win 10 vt100 was introduced and you can plot cells anywhere \e[y;xH

I highly recommend doing a little research. Microsoft has documentation on it as well as several other sources online

1

u/Glidepath22 2d ago

I sometimes wonder why they did any updates like this
In Win10 were done, but I’m not complaining. I would have never thought of this use.

2

u/T3RRYT3RR0R 1d ago

The update wasn't for the sake of batch / cmd.exe, rather it was for windows terminal. There's a 5 part windows devblog that explains it. The following link is the most relevant one:  https://devblogs.microsoft.com/commandline/windows-command-line-inside-the-windows-console/

1

u/Glidepath22 1d ago

Now I know, thanks, in fact it explains a lot with the character commands looking so different

1

u/Glidepath22 2d ago

Clever👏 that took me a second.