This was implemented before but got yeeted out before (don't remember why). I've looked at it but for some reason it was not working unless a debugger is attached.
How this should work (if syscall fails):
- Use ANSI escape code to move cursor to a high position like
x: 99,999 y:99,999
- Ask the terminal what position the cursor is in
- Parse and return the cursor position
This was implemented before but got yeeted out before (don't remember why). I've looked at it but for some reason it was not working unless a debugger is attached.
How this should work (if syscall fails):
x: 99,999 y:99,999