Is there any way to read a character from a specific location on the console? For example Read_Console_Char(10, 40);?
Is there any way to read a character from a specific location on the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know if there is a standard way to do this, but in Windows environment you can do that.
I’ve never read from arbitrary location, just writing to it with the use of SetConsoleCursorPosition and GetStdHandle.
I Just looked on MSDN and there are related API’s to get the contents, such as ReadConsoleOutput. Here is the link to it: ReadConsoleOutput example.
Hope that helps