Hi Monks, I'm working on a script wherein I want to check the current cursor position on the console whether it's at the beginning of the line or somewhere in between.
I tried using tell function but it returns total bytes rather coordinates. If I can get cursor coordinates somehow, I would be able to check the x coordinate and confirm if cursor it at the beginning of the line or not.
Please let me know your suggestions on this
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |