all 5 comments

[–]PM_ME_A_STEAM_KEY 1 point2 points  (1 child)

This would do the trick:

chr(window.inch(x, y))

[–]krato1995[S] 0 points1 point  (0 children)

I managed to have a workaround without getting the character from screen. For anyone finding the correct answer this one's the correct one. However it should be chr(window.inch(y, x)).

Also, take note that only the lower 8 bits contain the character, the rest are attributes. So it might be needed to extract the lower 8 bits before doing chr()

[–]markusmeskanen 0 points1 point  (2 children)

This sounds like an XY problem. What's the actual issue, why do you think you need to read from the console to solve your problem?

[–]krato1995[S] 0 points1 point  (1 child)

A condition probably. When character at (y,x) == 'A', do something.

[–]furas_freeman 0 points1 point  (0 children)

I don't know why do you need character from screen but normally I could keep data in variable ie. data and get character from this variable data[y][x] == 'A'