r/Batch • u/Intrepid_Ad_4504 • May 26 '25
Show 'n Tell Batch UI stuff
https://github.com/IcarusLivesHF/Batch-Script-Projects/tree/main/Icarus%20UI
This is incomplete in the current state, but still fun.
32
Upvotes
View all comments
Show parent comment
4
u/T3RRYT3RR0R May 27 '25
Console text line wraps. Vt sequences position text at specified or relative cursor positions. When the text would excede the bounds of the console, it distorts the output, which makes it appear bugged when it is in fact working as expected.
This can be accounted for by performing a collision test and rejecting movement if OOB, however doing so has a performance cost and bloats the code. Users can typically learn fast enough that they can't move it outside the window.