#include <stdio.h>

On Sun, May 15, 2022, 12:26 PM Undiscussed Horrific Abuse, One Victim of Many <gmkarl@gmail.com> wrote:


On Sun, May 15, 2022, 12:23 PM Undiscussed Horrific Abuse, One Victim of Many <gmkarl@gmail.com> wrote:
"\e[?1000h"


int main()
{

"\e[?1006h"
  printf("\e[?1006h");

stdin

00000000  1b 5b 3c 30 3b 33 38 3b  33 33 4d 1b 5b 3c 30 3b  |.[<0;38;33M.[<0;|
00000010  33 38 3b 33 33 6d 1b 5b  3c 30 3b 34 34 3b 33 30  |38;33m.[<0;44;30|

"\e[<0;%d;%dM" , x, y
  int x,y;
  scanf("\e[<0;%d;%dM", &x, &y);
  
  printf("\e[?1000l");
  printf("%d %d\n", x, y);
}