Say my data on the screen is like so:
abc
def
geh
How can I read in the entire screen into a matrix? I'm trying to write a function that finds the last non-space character written to the screen, either as input or output... so if the d was typed in or if it was printfed, it wouldn't make a difference.
Does anyone know how to do so?